aboutsummaryrefslogtreecommitdiff
path: root/editors/code/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json38
1 files changed, 24 insertions, 14 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index facb633d9..1c8caaa60 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -18,7 +18,7 @@
18 "scripts": { 18 "scripts": {
19 "vscode:prepublish": "npm run compile", 19 "vscode:prepublish": "npm run compile",
20 "package": "vsce package", 20 "package": "vsce package",
21 "compile": "tsc -p ./", 21 "compile": "tsc -p ./ && shx cp src/utils/terminateProcess.sh out/utils/terminateProcess.sh",
22 "watch": "tsc -watch -p ./", 22 "watch": "tsc -watch -p ./",
23 "postinstall": "node ./node_modules/vscode/bin/install", 23 "postinstall": "node ./node_modules/vscode/bin/install",
24 "fix": "prettier **/*.{json,ts} --write && tslint --project . --fix", 24 "fix": "prettier **/*.{json,ts} --write && tslint --project . --fix",
@@ -41,7 +41,8 @@
41 "tslint-config-prettier": "^1.18.0", 41 "tslint-config-prettier": "^1.18.0",
42 "typescript": "^3.3.1", 42 "typescript": "^3.3.1",
43 "vsce": "^1.57.0", 43 "vsce": "^1.57.0",
44 "vscode": "^1.1.29" 44 "vscode": "^1.1.29",
45 "shx": "^0.3.1"
45 }, 46 },
46 "activationEvents": [ 47 "activationEvents": [
47 "onLanguage:rust", 48 "onLanguage:rust",
@@ -183,6 +184,11 @@
183 ], 184 ],
184 "description": "Whether to run `cargo watch` on startup" 185 "description": "Whether to run `cargo watch` on startup"
185 }, 186 },
187 "rust-analyzer.cargo-watch.check-arguments": {
188 "type": "string",
189 "description": "`cargo-watch` check arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )",
190 "default": ""
191 },
186 "rust-analyzer.trace.server": { 192 "rust-analyzer.trace.server": {
187 "type": "string", 193 "type": "string",
188 "scope": "window", 194 "scope": "window",
@@ -191,8 +197,24 @@
191 "messages", 197 "messages",
192 "verbose" 198 "verbose"
193 ], 199 ],
200 "enumDescriptions": [
201 "No traces",
202 "Error only",
203 "Full log"
204 ],
194 "default": "off", 205 "default": "off",
195 "description": "Trace requests to the ra_lsp_server" 206 "description": "Trace requests to the ra_lsp_server"
207 },
208 "rust-analyzer.trace.cargo-watch": {
209 "type": "string",
210 "scope": "window",
211 "enum": [
212 "off",
213 "error",
214 "verbose"
215 ],
216 "default": "off",
217 "description": "Trace output of cargo-watch"
196 } 218 }
197 } 219 }
198 }, 220 },
@@ -223,18 +245,6 @@
223 "${workspaceRoot}" 245 "${workspaceRoot}"
224 ], 246 ],
225 "pattern": "$rustc" 247 "pattern": "$rustc"
226 },
227 {
228 "name": "rustc-watch",
229 "fileLocation": [
230 "relative",
231 "${workspaceRoot}"
232 ],
233 "background": {
234 "beginsPattern": "^\\[Running\\b",
235 "endsPattern": "^\\[Finished running\\b"
236 },
237 "pattern": "$rustc"
238 } 248 }
239 ] 249 ]
240 } 250 }