Skip to content

Commit 2d79705

Browse files
committed
revert not focusing completion list when quick suggest happens during snippet
1 parent 87234fc commit 2d79705

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/vs/editor/contrib/suggest/browser/suggestController.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,9 @@ export class SuggestController implements IEditorContribution {
246246

247247
let noFocus = false;
248248
if (e.triggerOptions.auto) {
249-
// don't "focus" item when configured to do so or when in snippet mode (and configured to do so)
249+
// don't "focus" item when configured to do
250250
const options = this.editor.getOption(EditorOption.suggest);
251-
252-
if (options.snippetsPreventQuickSuggestions && SnippetController2.get(this.editor)?.isInSnippet()) {
253-
// SPECIAL: in snippet mode, we never focus unless the user wants to
254-
noFocus = true;
255-
256-
} else if (options.selectionMode === 'never' || options.selectionMode === 'always') {
251+
if (options.selectionMode === 'never' || options.selectionMode === 'always') {
257252
// simple: always or never
258253
noFocus = options.selectionMode === 'never';
259254

0 commit comments

Comments
 (0)