| 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) { |