* Overwrite word ends on accept. Default to false.
*/
insertMode?:'insert'|'replace';
/**
* Show a highlight when suggestion replaces or keep text after the cursor. Defaults to false.
*/
insertHighlight?:boolean;
/**
* Enable graceful matching. Defaults to true.
*/
...
...
@@ -2870,7 +2866,6 @@ class EditorSuggest extends BaseEditorOption<EditorOption.suggest, InternalSugge
constructor(){
constdefaults:InternalSuggestOptions={
insertMode:'insert',
insertHighlight:true,
filterGraceful:true,
snippetsPreventQuickSuggestions:true,
localityBonus:false,
...
...
@@ -2921,11 +2916,6 @@ class EditorSuggest extends BaseEditorOption<EditorOption.suggest, InternalSugge
default:defaults.insertMode,
description:nls.localize('suggest.insertMode',"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")
},
'editor.suggest.insertHighlight':{
type:'boolean',
default:defaults.insertHighlight,
description:nls.localize('suggest.insertHighlight',"Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.")
},
'editor.suggest.filterGraceful':{
type:'boolean',
default:defaults.filterGraceful,
...
...
@@ -3118,7 +3108,6 @@ class EditorSuggest extends BaseEditorOption<EditorOption.suggest, InternalSugge