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.
2 parents 6106a41 + c4def33 commit 9a297a2Copy full SHA for 9a297a2
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