diff --git a/src/vs/editor/common/modes.ts b/src/vs/editor/common/modes.ts index a1d1c0f722221..845fbfa3c9cb3 100644 --- a/src/vs/editor/common/modes.ts +++ b/src/vs/editor/common/modes.ts @@ -438,8 +438,6 @@ export interface CompletionItem { command?: Command; /**@internal*/ noWhitespaceAdjust?: boolean; - /**@internal*/ - noAutoAccept?: boolean; /**@internal*/ _labelLow?: string; diff --git a/src/vs/editor/common/services/editorSimpleWorker.ts b/src/vs/editor/common/services/editorSimpleWorker.ts index e715ae921379a..81be846bc0322 100644 --- a/src/vs/editor/common/services/editorSimpleWorker.ts +++ b/src/vs/editor/common/services/editorSimpleWorker.ts @@ -515,7 +515,6 @@ export abstract class BaseEditorSimpleWorker { kind: CompletionItemKind.Text, label: word, insertText: word, - noAutoAccept: true, range: { startLineNumber: position.lineNumber, startColumn: currentWord.startColumn, endLineNumber: position.lineNumber, endColumn: currentWord.endColumn } }); } diff --git a/src/vs/editor/contrib/suggest/suggest.ts b/src/vs/editor/contrib/suggest/suggest.ts index 437de1663240c..70274ba7818a8 100644 --- a/src/vs/editor/contrib/suggest/suggest.ts +++ b/src/vs/editor/contrib/suggest/suggest.ts @@ -21,7 +21,6 @@ export const Context = { Visible: new RawContextKey('suggestWidgetVisible', false), MultipleSuggestions: new RawContextKey('suggestWidgetMultipleSuggestions', false), MakesTextEdit: new RawContextKey('suggestionMakesTextEdit', true), - AcceptOnKey: new RawContextKey('suggestionSupportsAcceptOnKey', true), AcceptSuggestionsOnEnter: new RawContextKey('acceptSuggestionOnEnter', true) }; diff --git a/src/vs/editor/contrib/suggest/suggestWidget.ts b/src/vs/editor/contrib/suggest/suggestWidget.ts index 3d4bfaca44fe6..452897839124f 100644 --- a/src/vs/editor/contrib/suggest/suggestWidget.ts +++ b/src/vs/editor/contrib/suggest/suggestWidget.ts @@ -403,7 +403,6 @@ export class SuggestWidget implements IContentWidget, IListVirtualDelegate; private suggestWidgetMultipleSuggestions: IContextKey; - private suggestionSupportsAutoAccept: IContextKey; private readonly editorBlurTimeout = new TimeoutTimer(); private readonly showTimeout = new TimeoutTimer(); @@ -479,7 +478,6 @@ export class SuggestWidget implements IContentWidget, IListVirtualDelegate