aboutsummaryrefslogtreecommitdiff
path: root/code/package.json
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-27 20:52:43 +0100
committerAleksey Kladov <[email protected]>2018-08-27 20:52:43 +0100
commit422efe59afe333a8371afe6f9fb45f159a6fb07f (patch)
treecfdc2a4209419e690257cff2235b3fd3f75fe53d /code/package.json
parent57518153147ad53639f16cc940d219dc582c550a (diff)
you better run
Diffstat (limited to 'code/package.json')
-rw-r--r--code/package.json275
1 files changed, 143 insertions, 132 deletions
diff --git a/code/package.json b/code/package.json
index 282e533af..87e715c44 100644
--- a/code/package.json
+++ b/code/package.json
@@ -1,138 +1,149 @@
1{ 1{
2 "name": "libsyntax-rust", 2 "name": "rcf-lsp",
3 "displayName": "libsyntax-rust", 3 "displayName": "rcf-lsp",
4 "description": "An experimental Rust plugin for VS Code based on libsyntax2", 4 "description": "",
5 "license": "MIT", 5 "version": "0.0.1",
6 "repository": "http://github.com/matklad/libsyntax2/", 6 "publisher": "matklad",
7 "version": "0.0.1", 7 "repository": {
8 "publisher": "matklad", 8 "url": "https://github.com/matklad/libsyntax2/"
9 "engines": { 9 },
10 "vscode": "^1.26.0" 10 "categories": [
11 }, 11 "Other"
12 "scripts": {
13 "vscode:prepublish": "tsc -p ./",
14 "compile": "tsc -watch -p ./",
15 "postinstall": "node ./node_modules/vscode/bin/install"
16 },
17 "dependencies": {
18 "vscode-languageclient": "^4.4.0"
19 },
20 "devDependencies": {
21 "@types/node": "^7.0.56",
22 "typescript": "^2.9.1",
23 "vsce": "^1.42.0",
24 "vscode": "^1.1.18"
25 },
26 "main": "./out/src/extension",
27 "activationEvents": [
28 "onLanguage:rust"
29 ],
30 "contributes": {
31 "taskDefinitions": [
32 {
33 "type": "cargo",
34 "required": [
35 "command"
36 ],
37 "properties": {
38 "label": {
39 "type": "string"
40 },
41 "command": {
42 "type": "string"
43 },
44 "args": {
45 "type": "array"
46 },
47 "env": {
48 "type": "object"
49 }
50 }
51 }
52 ],
53 "commands": [
54 {
55 "command": "libsyntax-rust.createFile",
56 "title": "Show Rust syntax tree"
57 },
58 {
59 "command": "libsyntax-rust.syntaxTree",
60 "title": "Show Rust syntax tree"
61 },
62 {
63 "command": "libsyntax-rust.extendSelection",
64 "title": "Rust Extend Selection"
65 },
66 {
67 "command": "libsyntax-rust.matchingBrace",
68 "title": "Rust Matching Brace"
69 },
70 {
71 "command": "libsyntax-rust.parentModule",
72 "title": "Rust Parent Module"
73 },
74 {
75 "command": "libsyntax-rust.joinLines",
76 "title": "Rust Join Lines"
77 },
78 {
79 "command": "libsyntax-rust.run",
80 "title": "Rust Run"
81 }
82 ], 12 ],
83 "keybindings": [ 13 "engines": {
84 { 14 "vscode": "^1.26.0"
85 "command": "libsyntax-rust.parentModule", 15 },
86 "key": "ctrl+u", 16 "scripts": {
87 "when": "editorTextFocus && editorLangId == rust" 17 "vscode:prepublish": "npm run compile",
88 }, 18 "compile": "tsc -p ./",
89 { 19 "watch": "tsc -watch -p ./",
90 "command": "libsyntax-rust.matchingBrace", 20 "postinstall": "node ./node_modules/vscode/bin/install"
91 "key": "ctrl+shift+m", 21 },
92 "when": "editorTextFocus && editorLangId == rust" 22 "dependencies": {
93 }, 23 "vscode-languageclient": "^4.4.0"
94 { 24 },
95 "command": "libsyntax-rust.extendSelection", 25 "devDependencies": {
96 "key": "ctrl+w", 26 "typescript": "^2.6.1",
97 "when": "editorTextFocus && editorLangId == rust" 27 "vscode": "^1.1.21",
98 }, 28 "vsce": "^1.42.0",
99 { 29 "@types/node": "^8.10.25",
100 "command": "libsyntax-rust.joinLines", 30 "@types/mocha": "^2.2.42"
101 "key": "ctrl+shift+j", 31 },
102 "when": "editorTextFocus && editorLangId == rust" 32 "activationEvents": [
103 } 33 "onLanguage:rust"
104 ], 34 ],
105 "problemMatchers": [ 35 "main": "./out/extension",
106 { 36 "contributes": {
107 "name": "rustc", 37 "taskDefinitions": [
108 "fileLocation": [ 38 {
109 "relative", 39 "type": "cargo",
110 "${workspaceRoot}" 40 "required": [
41 "command"
42 ],
43 "properties": {
44 "label": {
45 "type": "string"
46 },
47 "command": {
48 "type": "string"
49 },
50 "args": {
51 "type": "array"
52 },
53 "env": {
54 "type": "object"
55 }
56 }
57 }
58 ],
59 "commands": [
60 {
61 "command": "libsyntax-rust.createFile",
62 "title": "Show Rust syntax tree"
63 },
64 {
65 "command": "libsyntax-rust.syntaxTree",
66 "title": "Show Rust syntax tree"
67 },
68 {
69 "command": "libsyntax-rust.extendSelection",
70 "title": "Rust Extend Selection"
71 },
72 {
73 "command": "libsyntax-rust.matchingBrace",
74 "title": "Rust Matching Brace"
75 },
76 {
77 "command": "libsyntax-rust.parentModule",
78 "title": "Rust Parent Module"
79 },
80 {
81 "command": "libsyntax-rust.joinLines",
82 "title": "Rust Join Lines"
83 },
84 {
85 "command": "libsyntax-rust.run",
86 "title": "Rust Run"
87 }
88 ],
89 "keybindings": [
90 {
91 "command": "libsyntax-rust.parentModule",
92 "key": "ctrl+u",
93 "when": "editorTextFocus && editorLangId == rust"
94 },
95 {
96 "command": "libsyntax-rust.matchingBrace",
97 "key": "ctrl+shift+m",
98 "when": "editorTextFocus && editorLangId == rust"
99 },
100 {
101 "command": "libsyntax-rust.extendSelection",
102 "key": "ctrl+w",
103 "when": "editorTextFocus && editorLangId == rust"
104 },
105 {
106 "command": "libsyntax-rust.joinLines",
107 "key": "ctrl+shift+j",
108 "when": "editorTextFocus && editorLangId == rust"
109 },
110 {
111 "command": "libsyntax-rust.run",
112 "key": "ctrl+r",
113 "when": "editorTextFocus && editorLangId == rust"
114 }
111 ], 115 ],
112 "pattern": [ 116 "problemMatchers": [
113 { 117 {
114 "regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$", 118 "name": "rustc",
115 "severity": 1, 119 "fileLocation": [
116 "message": 4, 120 "relative",
117 "code": 3 121 "${workspaceRoot}"
118 }, 122 ],
119 { 123 "pattern": [
120 "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$", 124 {
121 "file": 2, 125 "regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$",
122 "line": 3, 126 "severity": 1,
123 "column": 4 127 "message": 4,
124 }, 128 "code": 3
125 { 129 },
126 "regexp": "^.*$" 130 {
127 }, 131 "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
128 { 132 "file": 2,
129 "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$", 133 "line": 3,
130 "file": 2, 134 "column": 4
131 "line": 3, 135 },
132 "column": 4 136 {
133 } 137 "regexp": "^.*$"
138 },
139 {
140 "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
141 "file": 2,
142 "line": 3,
143 "column": 4
144 }
145 ]
146 }
134 ] 147 ]
135 } 148 }
136 ]
137 }
138} 149}