MCPcopy Create free account
hub / github.com/microsoft/vscode-extension-samples / compositionEnd

Method compositionEnd

vim-sample/src/controller.ts:141–154  ·  view source on GitHub ↗
(editor: TextEditor)

Source from the content-addressed store, hash-verified

139 }
140
141 public compositionEnd(editor: TextEditor): Thenable<ITypeResult> {
142 this._isInComposition = false;
143 const text = this._composingText;
144 this._composingText = '';
145
146 if (text.length === 0) {
147 return Promise.resolve({
148 hasConsumedInput: true,
149 executeEditorCommand: null
150 });
151 }
152
153 return this.type(editor, text, {});
154 }
155
156 public type(editor: TextEditor, text: string, modifierKeys: ModifierKeys): Thenable<ITypeResult> {
157 if (this._currentMode !== Mode.NORMAL && this._currentMode !== Mode.REPLACE) {

Callers

nothing calls this directly

Calls 1

typeMethod · 0.95

Tested by

no test coverage detected