File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/vs/editor/contrib/inlineCompletions Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ import { EditOperation } from 'vs/editor/common/core/editOperation';
19
19
import { ICommandService } from 'vs/platform/commands/common/commands' ;
20
20
import { EditorOption } from 'vs/editor/common/config/editorOptions' ;
21
21
import { MutableDisposable } from 'vs/editor/contrib/inlineCompletions/utils' ;
22
+ import { RedoCommand , UndoCommand } from 'vs/editor/browser/editorExtensions' ;
23
+ import { CoreEditingCommands } from 'vs/editor/browser/controller/coreCommands' ;
22
24
23
25
export class InlineCompletionsModel extends Disposable implements GhostTextWidgetModel {
24
26
protected readonly onDidChangeEmitter = new Emitter < void > ( ) ;
@@ -36,7 +38,13 @@ export class InlineCompletionsModel extends Disposable implements GhostTextWidge
36
38
37
39
this . _register ( commandService . onDidExecuteCommand ( e => {
38
40
// These commands don't trigger onDidType.
39
- const commands = new Set ( [ 'undo' , 'redo' , 'tab' ] ) ;
41
+ const commands = new Set ( [
42
+ UndoCommand . id ,
43
+ RedoCommand . id ,
44
+ CoreEditingCommands . Tab . id ,
45
+ CoreEditingCommands . DeleteLeft . id ,
46
+ CoreEditingCommands . DeleteRight . id
47
+ ] ) ;
40
48
if ( commands . has ( e . commandId ) && editor . hasTextFocus ( ) ) {
41
49
this . handleUserInput ( ) ;
42
50
}
You can’t perform that action at this time.
0 commit comments