aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json29
-rw-r--r--editors/code/src/inlay_hints.ts2
2 files changed, 25 insertions, 6 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index df8265be1..b013c3f4a 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -155,11 +155,6 @@
155 "when": "editorTextFocus && editorLangId == rust" 155 "when": "editorTextFocus && editorLangId == rust"
156 }, 156 },
157 { 157 {
158 "command": "rust-analyzer.run",
159 "key": "ctrl+r",
160 "when": "editorTextFocus && editorLangId == rust"
161 },
162 {
163 "command": "rust-analyzer.onEnter", 158 "command": "rust-analyzer.onEnter",
164 "key": "enter", 159 "key": "enter",
165 "when": "editorTextFocus && !suggestWidgetVisible && editorLangId == rust && !vim.active || vim.mode == 'Insert' && editorTextFocus && !suggestWidgetVisible && editorLangId == rust" 160 "when": "editorTextFocus && !suggestWidgetVisible && editorLangId == rust && !vim.active || vim.mode == 'Insert' && editorTextFocus && !suggestWidgetVisible && editorLangId == rust"
@@ -187,7 +182,29 @@
187 "rust-analyzer.featureFlags": { 182 "rust-analyzer.featureFlags": {
188 "type": "object", 183 "type": "object",
189 "default": {}, 184 "default": {},
190 "description": "Fine grained feature flags to disable annoying features" 185 "description": "Fine grained feature flags to disable annoying features",
186 "properties": {
187 "lsp.diagnostics": {
188 "type": "boolean",
189 "description": "Whether to show diagnostics from `cargo check`"
190 },
191 "completion.insertion.add-call-parenthesis": {
192 "type": "boolean",
193 "description": "Whether to add parenthesis when completing functions"
194 },
195 "completion.enable-postfix": {
196 "type": "boolean",
197 "description": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc."
198 },
199 "notifications.workspace-loaded": {
200 "type": "boolean",
201 "description": "Whether to show `workspace loaded` message"
202 },
203 "notifications.cargo-toml-not-found": {
204 "type": "boolean",
205 "description": "Whether to show `can't find Cargo.toml` error message"
206 }
207 }
191 }, 208 },
192 "rust-analyzer.serverPath": { 209 "rust-analyzer.serverPath": {
193 "type": [ 210 "type": [
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts
index 5951cf1b4..6871bc111 100644
--- a/editors/code/src/inlay_hints.ts
+++ b/editors/code/src/inlay_hints.ts
@@ -42,12 +42,14 @@ export function activateInlayHints(ctx: Ctx) {
42const typeHintDecorationType = vscode.window.createTextEditorDecorationType({ 42const typeHintDecorationType = vscode.window.createTextEditorDecorationType({
43 after: { 43 after: {
44 color: new vscode.ThemeColor('rust_analyzer.inlayHint'), 44 color: new vscode.ThemeColor('rust_analyzer.inlayHint'),
45 fontStyle: "normal",
45 }, 46 },
46}); 47});
47 48
48const parameterHintDecorationType = vscode.window.createTextEditorDecorationType({ 49const parameterHintDecorationType = vscode.window.createTextEditorDecorationType({
49 before: { 50 before: {
50 color: new vscode.ThemeColor('rust_analyzer.inlayHint'), 51 color: new vscode.ThemeColor('rust_analyzer.inlayHint'),
52 fontStyle: "normal",
51 }, 53 },
52}); 54});
53 55