From b7edffe244581b428a4b4da4ff6a08ab461b018f Mon Sep 17 00:00:00 2001 From: Christophe MASSOLIN Date: Mon, 27 Apr 2020 00:11:04 +0200 Subject: Started rust-analyzer.cargo.defaultTarget implementation --- editors/code/package.json | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index b8aaa07d8..fe330fb43 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -237,6 +237,14 @@ "default": false, "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs" }, + "rust-analyzer.cargo.rustc.defaultTarget": { + "type": [ + "null", + "string" + ], + "default": null, + "description": "Specify the default target" + }, "rust-analyzer.rustfmt.extraArgs": { "type": "array", "items": { -- cgit v1.2.3 From ed5af989f431b9bfabf6f67350587add05a1942c Mon Sep 17 00:00:00 2001 From: Christophe MASSOLIN Date: Tue, 28 Apr 2020 00:15:54 +0200 Subject: [config] rename cargo.defaultTarget --- editors/code/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index fe330fb43..775bdaf17 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -237,7 +237,7 @@ "default": false, "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs" }, - "rust-analyzer.cargo.rustc.defaultTarget": { + "rust-analyzer.cargo.defaultTarget": { "type": [ "null", "string" -- cgit v1.2.3 From 65234e8828defc0a56cb1d5e20793b5163b5330d Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Fri, 1 May 2020 18:59:19 -0400 Subject: Remove `workspaceLoaded` setting The `workspaceLoaded` notification setting was originally designed to control the display of a popup message that said: "workspace loaded, {} rust packages" This popup was removed and replaced by a much sleeker message in the VSCode status bar that provides a real-time status while loading: rust-analyzer: {}/{} packages This was done as part of #3587 The new status-bar indicator is unobtrusive and shouldn't need to be disabled. So this setting is removed. --- editors/code/package.json | 5 ----- 1 file changed, 5 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index d30673791..7ef727b9d 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -205,11 +205,6 @@ "default": [], "description": "Paths to exclude from analysis." }, - "rust-analyzer.notifications.workspaceLoaded": { - "type": "boolean", - "default": true, - "markdownDescription": "Whether to show `workspace loaded` message." - }, "rust-analyzer.notifications.cargoTomlNotFound": { "type": "boolean", "default": true, -- cgit v1.2.3 From dc19d64f0a0d4a354f0c50ec8939087897489be3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 4 May 2020 13:10:59 +0200 Subject: Specify cotributed semanticTokenTypes in package.json --- editors/code/package.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 7ef727b9d..1cbd8d664 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -534,6 +534,10 @@ { "id": "unresolvedReference", "description": "Style for names which can not be resolved due to compilation errors" + }, + { + "id": "formatSpecifier", + "description": "Style for {} placeholders in format strings" } ], "semanticTokenModifiers": [ -- cgit v1.2.3 From 7330b8da63cdfa9a2dbf8c169b7ddb7ec4a906a9 Mon Sep 17 00:00:00 2001 From: szunami Date: Mon, 4 May 2020 10:27:59 -0400 Subject: Fix typo in markdownDescription --- editors/code/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 1cbd8d664..442b9de98 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -281,7 +281,7 @@ "minItems": 1 }, "default": null, - "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option." + "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message-format=json` or similar option." }, "rust-analyzer.checkOnSave.allTargets": { "type": "boolean", -- cgit v1.2.3 From 0ab4340cdb31ac4d50f039f0a56ebaff86710eb7 Mon Sep 17 00:00:00 2001 From: Christophe MASSOLIN Date: Tue, 5 May 2020 18:01:54 +0200 Subject: Rename `defaultTarget` to target --- editors/code/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 775bdaf17..d363e9fbb 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -237,13 +237,13 @@ "default": false, "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs" }, - "rust-analyzer.cargo.defaultTarget": { + "rust-analyzer.cargo.target": { "type": [ "null", "string" ], "default": null, - "description": "Specify the default target" + "description": "Specify the compilation target" }, "rust-analyzer.rustfmt.extraArgs": { "type": "array", -- cgit v1.2.3 From c22660179c3f892a56ad5bacfddd4c2ec563d35e Mon Sep 17 00:00:00 2001 From: guigui64 Date: Tue, 5 May 2020 22:44:39 +0200 Subject: add the allFeatures flag (true by default) --- editors/code/package.json | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index a05a69752..97276339f 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -296,6 +296,11 @@ "default": true, "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)" }, + "rust-analyzer.checkOnSave.allFeatures": { + "type": "boolean", + "default": true, + "markdownDescription": "Check with all features (will be passed as `--all-features`)" + }, "rust-analyzer.inlayHints.typeHints": { "type": "boolean", "default": true, -- cgit v1.2.3 From 5eac2d4c55fec5f96d84d20cc033c2a8e938f53e Mon Sep 17 00:00:00 2001 From: veetaha Date: Wed, 6 May 2020 00:39:29 +0300 Subject: Drop dead code and a dependency! --- editors/code/package.json | 1 - 1 file changed, 1 deletion(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 97276339f..eeb3d3513 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -33,7 +33,6 @@ "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix" }, "dependencies": { - "jsonc-parser": "^2.2.1", "node-fetch": "^2.6.0", "vscode-languageclient": "7.0.0-next.1" }, -- cgit v1.2.3 From 9a4553b833e8fa57a361d934c3498efa485d27c9 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Wed, 6 May 2020 11:22:24 -0400 Subject: package.json: Minor configuration spelling fix --- editors/code/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index eeb3d3513..8849615c8 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -405,7 +405,7 @@ "ms-vscode.cpptools" ], "default": "auto", - "description": "Preffered debug engine.", + "description": "Preferred debug engine.", "markdownEnumDescriptions": [ "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).", "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)", -- cgit v1.2.3 From 71369f5c595a48cda4c4d005bc8872a18efacfbe Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 6 May 2020 19:03:17 +0200 Subject: Better mapping to TextMate scopes for keywords https://github.com/microsoft/vscode/issues/94367#issuecomment-608629883 --- editors/code/package.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 8849615c8..12a08ba40 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -592,6 +592,12 @@ "keyword.unsafe": [ "keyword.other.unsafe" ], + "keyword": [ + "keyword" + ], + "keyword.controlFlow": [ + "keyword.control" + ], "variable.constant": [ "entity.name.constant" ] -- cgit v1.2.3 From 5426e2927e317a5e78179a5bd74b9414c0651b86 Mon Sep 17 00:00:00 2001 From: vsrs Date: Thu, 7 May 2020 17:07:58 +0300 Subject: Add additional debug options --- editors/code/package.json | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index eeb3d3513..84aea8249 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -418,6 +418,16 @@ "default": { "/rustc/": "${env:USERPROFILE}/.rustup/toolchains//lib/rustlib/src/rust" } + }, + "rust-analyzer.debug.openUpDebugPane": { + "description": "Whether to open up the Debug Pane on debugging start.", + "type": "boolean", + "default": false + }, + "rust-analyzer.debug.engineSettings": { + "type": "object", + "default": {}, + "description": "Optional settings passed to the debug engine." } } }, -- cgit v1.2.3 From 435a17ecd8806f3ae81edf6277c17363b01f4334 Mon Sep 17 00:00:00 2001 From: vsrs Date: Thu, 7 May 2020 18:35:48 +0300 Subject: Add separate settings for each debug engine. --- editors/code/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 84aea8249..e4dd66924 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -427,7 +427,7 @@ "rust-analyzer.debug.engineSettings": { "type": "object", "default": {}, - "description": "Optional settings passed to the debug engine." + "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }" } } }, @@ -609,4 +609,4 @@ } ] } -} +} \ No newline at end of file -- cgit v1.2.3 From 23f4859166ba16f02927b476aad2ae91e618b1ef Mon Sep 17 00:00:00 2001 From: vsrs Date: Thu, 7 May 2020 18:53:14 +0300 Subject: Add CodeLLDB Rust visualization --- editors/code/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index e4dd66924..e8e9598f6 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -609,4 +609,4 @@ } ] } -} \ No newline at end of file +} -- cgit v1.2.3 From 2904311664e0aeb2faa3324616083e1bcf7333fc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 7 May 2020 18:46:58 +0200 Subject: Use the correct color for structs This works around https://github.com/microsoft/vscode/issues/97162 --- editors/code/package.json | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 12a08ba40..6935fa7a5 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -589,6 +589,9 @@ "union": [ "entity.name.union" ], + "struct": [ + "entity.name.type.struct" + ], "keyword.unsafe": [ "keyword.other.unsafe" ], -- cgit v1.2.3 From 3bf5ef02c0dc3087fb4cdd0a794892edde359a0d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 8 May 2020 09:28:15 +0200 Subject: Add master config for inlayHints to make disabling easy --- editors/code/package.json | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 6935fa7a5..853fc513b 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -300,6 +300,11 @@ "default": true, "markdownDescription": "Check with all features (will be passed as `--all-features`)" }, + "rust-analyzer.inlayHints.enable": { + "type": "boolean", + "default": true, + "description": "Disable all inlay hints" + }, "rust-analyzer.inlayHints.typeHints": { "type": "boolean", "default": true, -- cgit v1.2.3 From 1be6320ea6cf7830195f80681fa0f43cc340da7e Mon Sep 17 00:00:00 2001 From: vsrs <62505555+vsrs@users.noreply.github.com> Date: Fri, 8 May 2020 19:22:26 +0300 Subject: "rust-analyzer.debug.openDebugPane" Co-authored-by: bjorn3 --- editors/code/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index e8e9598f6..e750412a7 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -419,7 +419,7 @@ "/rustc/": "${env:USERPROFILE}/.rustup/toolchains//lib/rustlib/src/rust" } }, - "rust-analyzer.debug.openUpDebugPane": { + "rust-analyzer.debug.openDebugPane": { "description": "Whether to open up the Debug Pane on debugging start.", "type": "boolean", "default": false -- cgit v1.2.3 From da0c8d96d4d612d63058f0d4eba0e6f4348fa2a3 Mon Sep 17 00:00:00 2001 From: George Fraser Date: Sat, 9 May 2020 10:23:32 -0700 Subject: Tweak the textmate fallback scopes to be consistent with builtin TextMate grammar and other languages --- editors/code/package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index c6fc13519..a86d0ad0d 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -596,28 +596,28 @@ "support.type.primitive" ], "lifetime": [ - "entity.name.lifetime.rust" + "entity.name.type.lifetime" ], "typeAlias": [ - "entity.name.typeAlias" + "entity.name.type.typeAlias" ], "union": [ - "entity.name.union" + "entity.name.type.union" ], "struct": [ "entity.name.type.struct" ], - "keyword.unsafe": [ - "keyword.other.unsafe" - ], "keyword": [ - "keyword" + "keyword.other" ], "keyword.controlFlow": [ "keyword.control" ], "variable.constant": [ - "entity.name.constant" + "variable.other.constant" + ], + "formatSpecifier": [ + "punctuation.section.embedded" ] } } -- cgit v1.2.3 From a91d15c80c337dd1afb0eddd5eb048010d098ac7 Mon Sep 17 00:00:00 2001 From: George Fraser Date: Sat, 9 May 2020 12:24:59 -0700 Subject: Import built-in textmate grammar, with no changes --- editors/code/package.json | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index a86d0ad0d..40ae3ab9e 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -478,6 +478,11 @@ } ], "grammars": [ + { + "language": "rust", + "scopeName": "source.rust", + "path": "rust.tmGrammar.json" + }, { "language": "ra_syntax_tree", "scopeName": "source.ra_syntax_tree", -- cgit v1.2.3 From 2d2b32abe5edc6102a8800dedcc40bb3ac8bc393 Mon Sep 17 00:00:00 2001 From: George Fraser Date: Sun, 10 May 2020 13:32:42 -0700 Subject: Change lifetimes back to keyword-ish, tweak builtins for consistency between TextMate and semantic --- editors/code/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 40ae3ab9e..f46684c76 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -601,7 +601,7 @@ "support.type.primitive" ], "lifetime": [ - "entity.name.type.lifetime" + "storage.modifier.lifetime.rust" ], "typeAlias": [ "entity.name.type.typeAlias" -- cgit v1.2.3 From 155f0601421620086a256c9e313568d5bd7391e0 Mon Sep 17 00:00:00 2001 From: vsrs Date: Mon, 11 May 2020 16:06:57 +0300 Subject: "rust-analyzer.debug" command --- editors/code/package.json | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index c6fc13519..2f90d3baf 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -120,6 +120,11 @@ "title": "Run", "category": "Rust Analyzer" }, + { + "command": "rust-analyzer.debug", + "title": "Debug", + "category": "Rust Analyzer" + }, { "command": "rust-analyzer.analyzerStatus", "title": "Status", -- cgit v1.2.3 From fee0a9fa5a3dd84400108b33a1e8225dc364a9fa Mon Sep 17 00:00:00 2001 From: vsrs Date: Mon, 11 May 2020 18:00:15 +0300 Subject: "rust-analyzer.newDebugConfig" command --- editors/code/package.json | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 2f90d3baf..ec325ad3f 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -125,6 +125,11 @@ "title": "Debug", "category": "Rust Analyzer" }, + { + "command": "rust-analyzer.newDebugConfig", + "title": "Generate launch configuration", + "category": "Rust Analyzer" + }, { "command": "rust-analyzer.analyzerStatus", "title": "Status", -- cgit v1.2.3 From 57c52bd39732bb910f3e0cb3b39acbf8ef8f5d69 Mon Sep 17 00:00:00 2001 From: George Fraser Date: Tue, 12 May 2020 08:31:43 -0700 Subject: Use .rust suffix on scopes --- editors/code/package.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index f46684c76..e51f1105b 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -595,34 +595,34 @@ "language": "rust", "scopes": { "attribute": [ - "meta.attribute" + "meta.attribute.rust" ], "builtinType": [ - "support.type.primitive" + "support.type.primitive.rust" ], "lifetime": [ "storage.modifier.lifetime.rust" ], "typeAlias": [ - "entity.name.type.typeAlias" + "entity.name.type.typeAlias.rust" ], "union": [ - "entity.name.type.union" + "entity.name.type.union.rust" ], "struct": [ - "entity.name.type.struct" + "entity.name.type.struct.rust" ], "keyword": [ - "keyword.other" + "keyword.other.rust" ], "keyword.controlFlow": [ - "keyword.control" + "keyword.control.rust" ], "variable.constant": [ - "variable.other.constant" + "variable.other.constant.rust" ], "formatSpecifier": [ - "punctuation.section.embedded" + "punctuation.section.embedded.rust" ] } } -- cgit v1.2.3 From 07721d2ab666a07b6ee71a44a0ca93431d339953 Mon Sep 17 00:00:00 2001 From: George Fraser Date: Sat, 9 May 2020 13:19:29 -0700 Subject: Mark up statics and mutables --- editors/code/package.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index e51f1105b..a7ca6f014 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -623,6 +623,12 @@ ], "formatSpecifier": [ "punctuation.section.embedded.rust" + ], + "*.mutable": [ + "markup.underline" + ], + "*.static": [ + "markup.italic" ] } } -- cgit v1.2.3 From 6222f2b7096531cc8501044cdc7b6b5fb07e331b Mon Sep 17 00:00:00 2001 From: George Fraser Date: Tue, 12 May 2020 08:36:37 -0700 Subject: Leave statics alone --- editors/code/package.json | 3 --- 1 file changed, 3 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index a7ca6f014..321353f22 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -626,9 +626,6 @@ ], "*.mutable": [ "markup.underline" - ], - "*.static": [ - "markup.italic" ] } } -- cgit v1.2.3 From 6826f0083e51e49e77cec42a8b4ad055ff0787bb Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 12 May 2020 17:36:03 -0400 Subject: vscode engine 1.45 latest stable --- editors/code/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index e51f1105b..3c9caa26e 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -21,7 +21,7 @@ "Programming Languages" ], "engines": { - "vscode": "^1.44.0" + "vscode": "^1.45.0" }, "enableProposedApi": true, "scripts": { -- cgit v1.2.3 From 7ac88f2cb3fbaa2f3fcd62a7672da0eee61ae273 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 12 May 2020 17:43:47 -0400 Subject: Bump packages --- editors/code/package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 3c9caa26e..44cb0971e 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -39,15 +39,15 @@ "devDependencies": { "@rollup/plugin-commonjs": "^11.1.0", "@rollup/plugin-node-resolve": "^7.1.3", - "@types/node": "^12.12.37", - "@types/node-fetch": "^2.5.6", - "@types/vscode": "^1.44.0", - "@typescript-eslint/eslint-plugin": "^2.29.0", - "@typescript-eslint/parser": "^2.29.0", + "@types/node": "^12.12.39", + "@types/node-fetch": "^2.5.7", + "@types/vscode": "^1.45.0", + "@typescript-eslint/eslint-plugin": "^2.33.0", + "@typescript-eslint/parser": "^2.33.0", "eslint": "^6.8.0", - "rollup": "^2.7.1", - "tslib": "^1.11.1", - "typescript": "^3.8.3", + "rollup": "^2.10.0", + "tslib": "^1.12.0", + "typescript": "^3.9.2", "typescript-formatter": "^7.2.2", "vsce": "^1.75.0" }, -- cgit v1.2.3 From 9ebb2acdca6c711cff7bfc84a410794739092dbe Mon Sep 17 00:00:00 2001 From: vsrs Date: Wed, 13 May 2020 15:51:15 +0300 Subject: Use launch.json in Debug Lens sessions. Add the possibility to use existing configurations via Debug Lens --- editors/code/package.json | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index ec325ad3f..34dbea0b2 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -443,6 +443,11 @@ "type": "object", "default": {}, "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }" + }, + "rust-analyzer.debug.useLaunchJson": { + "description": "Whether to use existing configurations from launch.json.", + "type": "boolean", + "default": false } } }, -- cgit v1.2.3 From 3ffc26eaebb1f9491477e99d5187b048bd489cd6 Mon Sep 17 00:00:00 2001 From: vsrs Date: Thu, 14 May 2020 11:12:10 +0300 Subject: Remove "rust-analyzer.debug.useLaunchJson" option --- editors/code/package.json | 5 ----- 1 file changed, 5 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 34dbea0b2..ec325ad3f 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -443,11 +443,6 @@ "type": "object", "default": {}, "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }" - }, - "rust-analyzer.debug.useLaunchJson": { - "description": "Whether to use existing configurations from launch.json.", - "type": "boolean", - "default": false } } }, -- cgit v1.2.3 From fd83d0e9ba4605d8060ff0eca83ae9de0202a8a7 Mon Sep 17 00:00:00 2001 From: George Fraser Date: Fri, 15 May 2020 19:27:18 -0700 Subject: Color macros (fixes #4462) --- editors/code/package.json | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 4e7e3faf7..2dbbde852 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -604,6 +604,9 @@ { "language": "rust", "scopes": { + "macro": [ + "entity.name.function.macro.rust" + ], "attribute": [ "meta.attribute.rust" ], -- cgit v1.2.3 From dc217bdf90d555eaa1780041fc3a14e64173994d Mon Sep 17 00:00:00 2001 From: vsrs Date: Sun, 17 May 2020 19:51:44 +0300 Subject: CodeLens configuration options. --- editors/code/package.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 2dbbde852..efed4c7f2 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -443,6 +443,21 @@ "type": "object", "default": {}, "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }" + }, + "rust-analyzer.lens.run": { + "description": "Whether to show Run lens.", + "type": "boolean", + "default": true + }, + "rust-analyzer.lens.debug": { + "description": "Whether to show Debug lens.", + "type": "boolean", + "default": true + }, + "rust-analyzer.lens.implementations": { + "description": "Whether to show Implementations lens.", + "type": "boolean", + "default": true } } }, -- cgit v1.2.3 From 19a8c1450c1fd7263b49e2e176f8fef0d93d923b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 17 May 2020 15:57:30 +0200 Subject: Relax VS Code version requirement --- editors/code/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 2dbbde852..4045ab3d2 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -21,7 +21,7 @@ "Programming Languages" ], "engines": { - "vscode": "^1.45.0" + "vscode": "^1.44.0" }, "enableProposedApi": true, "scripts": { @@ -41,7 +41,7 @@ "@rollup/plugin-node-resolve": "^7.1.3", "@types/node": "^12.12.39", "@types/node-fetch": "^2.5.7", - "@types/vscode": "^1.45.0", + "@types/vscode": "^1.44.0", "@typescript-eslint/eslint-plugin": "^2.33.0", "@typescript-eslint/parser": "^2.33.0", "eslint": "^6.8.0", -- cgit v1.2.3 From 78817a319476d8af40c4f78e8c47dc958781f88f Mon Sep 17 00:00:00 2001 From: vsrs Date: Mon, 18 May 2020 10:27:00 +0300 Subject: Add "rust-analyzer.lens.enable" --- editors/code/package.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index efed4c7f2..38c77533c 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -444,18 +444,23 @@ "default": {}, "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }" }, + "rust-analyzer.lens.enable": { + "description": "Whether to show CodeLens in Rust files.", + "type": "boolean", + "default": true + }, "rust-analyzer.lens.run": { - "description": "Whether to show Run lens.", + "markdownDescription": "Whether to show Run lens. Only applies when `#rust-analyzer.lens.enable#` is set.", "type": "boolean", "default": true }, "rust-analyzer.lens.debug": { - "description": "Whether to show Debug lens.", + "markdownDescription": "Whether to show Debug lens. Only applies when `#rust-analyzer.lens.enable#` is set.", "type": "boolean", "default": true }, "rust-analyzer.lens.implementations": { - "description": "Whether to show Implementations lens.", + "markdownDescription": "Whether to show Implementations lens. Only applies when `#rust-analyzer.lens.enable#` is set.", "type": "boolean", "default": true } -- cgit v1.2.3 From 0f953ddd9e8b9a6342be82797fbf88bb56fc6715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Thu, 21 May 2020 12:24:18 +0300 Subject: Fix phrasing in inlay hints settings --- editors/code/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index d899f60e3..78f647baa 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -313,22 +313,22 @@ "rust-analyzer.inlayHints.enable": { "type": "boolean", "default": true, - "description": "Disable all inlay hints" + "description": "Whether to show inlay hints" }, "rust-analyzer.inlayHints.typeHints": { "type": "boolean", "default": true, - "description": "Whether to show inlay type hints" + "description": "Whether to show inlay type hints for variables." }, "rust-analyzer.inlayHints.chainingHints": { "type": "boolean", "default": true, - "description": "Whether to show inlay type hints for method chains" + "description": "Whether to show inlay type hints for method chains." }, "rust-analyzer.inlayHints.parameterHints": { "type": "boolean", "default": true, - "description": "Whether to show function parameter name inlay hints at the call site" + "description": "Whether to show function parameter name inlay hints at the call site." }, "rust-analyzer.inlayHints.maxLength": { "type": [ -- cgit v1.2.3