X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=editors%2Fcode%2Fpackage.json;h=1252752a9ae0192bd5e27774194995bb882f2cf2;hb=2a7793d912bafef2d97c0e899262b94efe977543;hp=9ab57d7dc5f387246fd5022329c09476321dddd9;hpb=89cecff2bd1748f9044792592806603dedf21290;p=rust.git diff --git a/editors/code/package.json b/editors/code/package.json index 9ab57d7dc5f..1252752a9ae 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -36,24 +36,22 @@ "test": "node ./out/tests/runTests.js" }, "dependencies": { - "https-proxy-agent": "^5.0.0", - "node-fetch": "^3.0.3", - "vscode-languageclient": "8.0.0-next.2", - "d3": "^7.2.0", + "vscode-languageclient": "8.0.0-next.8", + "d3": "^7.3.0", "d3-graphviz": "^4.0.0" }, "devDependencies": { "@types/node": "~14.17.5", "@types/vscode": "~1.63.0", - "@typescript-eslint/eslint-plugin": "^5.5.0", - "@typescript-eslint/parser": "^5.5.0", - "@vscode/test-electron": "^1.6.2", - "esbuild": "^0.14.1", - "eslint": "^8.3.0", + "@typescript-eslint/eslint-plugin": "^5.10.0", + "@typescript-eslint/parser": "^5.10.0", + "@vscode/test-electron": "^2.1.1", + "esbuild": "^0.14.12", + "eslint": "^8.7.0", "tslib": "^2.3.0", - "typescript": "^4.5.2", + "typescript": "^4.5.5", "typescript-formatter": "^7.2.2", - "vsce": "^2.5.1" + "vsce": "^2.6.7" }, "activationEvents": [ "onLanguage:rust", @@ -305,24 +303,6 @@ "default": true, "description": "Whether inlay hints font size should be smaller than editor's font size." }, - "rust-analyzer.updates.channel": { - "type": "string", - "enum": [ - "stable", - "nightly" - ], - "default": "stable", - "markdownEnumDescriptions": [ - "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.", - "`nightly` updates are shipped daily (extension updates automatically by downloading artifacts directly from GitHub), they contain cutting-edge features and latest bug fixes. These releases help us get your feedback very quickly and speed up rust-analyzer development **drastically**." - ], - "markdownDescription": "Choose `nightly` updates to get the latest features and bug fixes every day. While `stable` releases occur weekly and don't contain cutting-edge features from VSCode proposed APIs." - }, - "rust-analyzer.updates.askBeforeDownload": { - "type": "boolean", - "default": false, - "description": "Whether to ask for permission before downloading any files from the Internet." - }, "rust-analyzer.server.path": { "type": [ "null", @@ -330,7 +310,7 @@ ], "scope": "machine-overridable", "default": null, - "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default). If this is set, then `#rust-analyzer.updates.channel#` setting is not used" + "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default)." }, "rust-analyzer.server.extraEnv": { "type": [ @@ -398,6 +378,19 @@ "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`" }, "$generated-start": {}, + "rust-analyzer.assist.exprFillDefault": { + "markdownDescription": "Placeholder for missing expressions in assists.", + "default": "todo", + "type": "string", + "enum": [ + "todo", + "default" + ], + "enumDescriptions": [ + "Fill missing expressions with the `todo` macro", + "Fill missing expressions with reasonable defaults, `new` or `default` constructors." + ] + }, "rust-analyzer.assist.importGranularity": { "markdownDescription": "How imports should be grouped into use statements.", "default": "crate", @@ -650,6 +643,11 @@ "default": true, "type": "boolean" }, + "rust-analyzer.completion.privateEditable.enable": { + "markdownDescription": "Enables completions of private items and fields that are defined in the current workspace even if they are not visible at the current position.", + "default": false, + "type": "boolean" + }, "rust-analyzer.diagnostics.enable": { "markdownDescription": "Whether to show native rust-analyzer diagnostics.", "default": true, @@ -887,6 +885,13 @@ "default": true, "type": "boolean" }, + "rust-analyzer.primeCaches.numThreads": { + "markdownDescription": "How many worker threads to to handle priming caches. The default `0` means to pick automatically.", + "default": 0, + "type": "number", + "minimum": 0, + "maximum": 255 + }, "rust-analyzer.procMacro.enable": { "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.", "default": true, @@ -900,6 +905,11 @@ "string" ] }, + "rust-analyzer.procMacro.ignored": { + "markdownDescription": "These proc-macros will be ignored when trying to expand them.\n\nThis config takes a map of crate names with the exported proc-macro names to ignore as values.", + "default": {}, + "type": "object" + }, "rust-analyzer.runnables.overrideCargo": { "markdownDescription": "Command to be executed instead of 'cargo' for runnables.", "default": null, @@ -1260,6 +1270,11 @@ "description": "Style for logic operators", "superType": "operator" }, + { + "id": "macroBang", + "description": "Style for the ! token of macro calls", + "superType": "punctuation" + }, { "id": "operator", "description": "Style for operators", @@ -1398,6 +1413,9 @@ "lifetime": [ "storage.modifier.lifetime.rust" ], + "macroBang": [ + "entity.name.function.macro.rust" + ], "method": [ "entity.name.function.rust" ],