diff --git a/editors/code/package.json b/editors/code/package.json index ad1101603b4..8e58d6b770f 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -161,7 +161,7 @@ { "command": "rust-analyzer.onEnter", "key": "enter", - "when": "editorTextFocus && !suggestWidgetVisible && editorLangId == rust" + "when": "editorTextFocus && !suggestWidgetVisible && editorLangId == rust && !vim.active || vim.mode == 'Insert' && editorTextFocus && !suggestWidgetVisible && editorLangId == rust" } ], "configuration": {