We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
paste as text
1 parent 99b45c8 commit c4def33Copy full SHA for c4def33
src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.ts
@@ -145,11 +145,11 @@ export class CopyPasteController extends Disposable implements IEditorContributi
145
this._postPasteWidgetManager.tryShowSelector();
146
}
147
148
- public pasteAs(preferred?: PastePreference) {
+ public async pasteAs(preferred?: PastePreference) {
149
this._editor.focus();
150
try {
151
this._pasteAsActionContext = { preferred };
152
- this._commandService.executeCommand('editor.action.clipboardPasteAction');
+ await this._commandService.executeCommand('editor.action.clipboardPasteAction');
153
} finally {
154
this._pasteAsActionContext = undefined;
155
0 commit comments