Skip to content

Commit

Permalink
Fix broken paste action (#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey authored Jun 13, 2023
1 parent 65fab51 commit ee3098d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ export class VscodeTextEditorImpl implements EditableTextEditor {
}

public async clipboardPaste(_ranges?: Range[]): Promise<void> {
// We add these sleeps here to workaround a bug in VSCode. See #1521
await sleep(100);
await vscode.commands.executeCommand("editor.action.clipboardPasteAction");
await sleep(100);
}

public async indentLine(_ranges?: Range[]): Promise<void> {
Expand Down

0 comments on commit ee3098d

Please sign in to comment.