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.json31
1 files changed, 28 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 7ef727b9d..6935fa7a5 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -33,7 +33,6 @@
33 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix" 33 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix"
34 }, 34 },
35 "dependencies": { 35 "dependencies": {
36 "jsonc-parser": "^2.2.1",
37 "node-fetch": "^2.6.0", 36 "node-fetch": "^2.6.0",
38 "vscode-languageclient": "7.0.0-next.1" 37 "vscode-languageclient": "7.0.0-next.1"
39 }, 38 },
@@ -233,6 +232,14 @@
233 "default": false, 232 "default": false,
234 "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs" 233 "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs"
235 }, 234 },
235 "rust-analyzer.cargo.target": {
236 "type": [
237 "null",
238 "string"
239 ],
240 "default": null,
241 "description": "Specify the compilation target"
242 },
236 "rust-analyzer.rustfmt.extraArgs": { 243 "rust-analyzer.rustfmt.extraArgs": {
237 "type": "array", 244 "type": "array",
238 "items": { 245 "items": {
@@ -281,13 +288,18 @@
281 "minItems": 1 288 "minItems": 1
282 }, 289 },
283 "default": null, 290 "default": null,
284 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option." 291 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message-format=json` or similar option."
285 }, 292 },
286 "rust-analyzer.checkOnSave.allTargets": { 293 "rust-analyzer.checkOnSave.allTargets": {
287 "type": "boolean", 294 "type": "boolean",
288 "default": true, 295 "default": true,
289 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)" 296 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)"
290 }, 297 },
298 "rust-analyzer.checkOnSave.allFeatures": {
299 "type": "boolean",
300 "default": true,
301 "markdownDescription": "Check with all features (will be passed as `--all-features`)"
302 },
291 "rust-analyzer.inlayHints.typeHints": { 303 "rust-analyzer.inlayHints.typeHints": {
292 "type": "boolean", 304 "type": "boolean",
293 "default": true, 305 "default": true,
@@ -393,7 +405,7 @@
393 "ms-vscode.cpptools" 405 "ms-vscode.cpptools"
394 ], 406 ],
395 "default": "auto", 407 "default": "auto",
396 "description": "Preffered debug engine.", 408 "description": "Preferred debug engine.",
397 "markdownEnumDescriptions": [ 409 "markdownEnumDescriptions": [
398 "First try to use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), if it's not installed try to use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools).", 410 "First try to use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), if it's not installed try to use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools).",
399 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)", 411 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
@@ -534,6 +546,10 @@
534 { 546 {
535 "id": "unresolvedReference", 547 "id": "unresolvedReference",
536 "description": "Style for names which can not be resolved due to compilation errors" 548 "description": "Style for names which can not be resolved due to compilation errors"
549 },
550 {
551 "id": "formatSpecifier",
552 "description": "Style for {} placeholders in format strings"
537 } 553 }
538 ], 554 ],
539 "semanticTokenModifiers": [ 555 "semanticTokenModifiers": [
@@ -573,9 +589,18 @@
573 "union": [ 589 "union": [
574 "entity.name.union" 590 "entity.name.union"
575 ], 591 ],
592 "struct": [
593 "entity.name.type.struct"
594 ],
576 "keyword.unsafe": [ 595 "keyword.unsafe": [
577 "keyword.other.unsafe" 596 "keyword.other.unsafe"
578 ], 597 ],
598 "keyword": [
599 "keyword"
600 ],
601 "keyword.controlFlow": [
602 "keyword.control"
603 ],
579 "variable.constant": [ 604 "variable.constant": [
580 "entity.name.constant" 605 "entity.name.constant"
581 ] 606 ]