Skip to content

Commit 9a297a2

Browse files
authored
Merge pull request microsoft#247987 from mjbvz/lonely-flamingo
Fixes `paste as text`
2 parents 6106a41 + c4def33 commit 9a297a2

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)