From 3183ff3a7b1fbcf3cb5379cf162a3d769a21be7a Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Tue, 8 Dec 2020 00:46:56 +0200 Subject: Disable the completion for no corresponding client resolve capabilities --- editors/code/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editors/code') diff --git a/editors/code/package.json b/editors/code/package.json index af228f983..4b0f41a24 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -460,10 +460,10 @@ "default": true, "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc." }, - "rust-analyzer.completion.enableExperimental": { + "rust-analyzer.completion.disableFuzzyAutoimports": { "type": "boolean", - "default": true, - "markdownDescription": "Display additional completions with potential false positives and performance issues" + "default": false, + "markdownDescription": "Turns off extra completion suggestions that might be too noisy or slow" }, "rust-analyzer.callInfo.full": { "type": "boolean", -- cgit v1.2.3 From cbd3717f2c52b17aa9b15c2df4a364c62d17e4e1 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Tue, 8 Dec 2020 14:27:18 +0200 Subject: Better config name --- editors/code/package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'editors/code') diff --git a/editors/code/package.json b/editors/code/package.json index 4b0f41a24..dbde37005 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -460,10 +460,13 @@ "default": true, "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc." }, - "rust-analyzer.completion.disableFuzzyAutoimports": { + "rust-analyzer.completion.autoimport.enable": { "type": "boolean", - "default": false, - "markdownDescription": "Turns off extra completion suggestions that might be too noisy or slow" + "default": true, + "markdownDescription": [ + "Toggles the additional completions that automatically add imports when completed.", + "Note that your client have to specify the `additionalTextEdits` LSP client capability to truly have this feature enabled" + ] }, "rust-analyzer.callInfo.full": { "type": "boolean", -- cgit v1.2.3