From 7fd661f0853ef3a32bfb8a01617de8e5adb3ca01 Mon Sep 17 00:00:00 2001 From: Gregoire Geis Date: Mon, 3 Feb 2020 22:26:20 +0100 Subject: vscode: Only handle enter if the suggest widget is hidden. --- editors/code/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editors/code/package.json b/editors/code/package.json index 421124764..c9404a4dd 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -145,7 +145,7 @@ { "command": "rust-analyzer.onEnter", "key": "enter", - "when": "editorTextFocus && editorLangId == rust" + "when": "editorTextFocus && !suggestWidgetVisible && editorLangId == rust" } ], "configuration": { -- cgit v1.2.3