Skip to content

Commit c4def33

Browse files
committed
Fixes paste as text
Fixes microsoft#247985
1 parent 99b45c8 commit c4def33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ export class CopyPasteController extends Disposable implements IEditorContributi
145145
this._postPasteWidgetManager.tryShowSelector();
146146
}
147147

148-
public pasteAs(preferred?: PastePreference) {
148+
public async pasteAs(preferred?: PastePreference) {
149149
this._editor.focus();
150150
try {
151151
this._pasteAsActionContext = { preferred };
152-
this._commandService.executeCommand('editor.action.clipboardPasteAction');
152+
await this._commandService.executeCommand('editor.action.clipboardPasteAction');
153153
} finally {
154154
this._pasteAsActionContext = undefined;
155155
}

0 commit comments

Comments
 (0)