Skip to content

Commit 58e91ce

Browse files
authored
Merge pull request microsoft#100288 from daniel-j-davis/feature/paste-in-debug-window
Allow pasting in debug window microsoft#100235
2 parents 45af152 + d867dc4 commit 58e91ce

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • src/vs/workbench/contrib/debug/browser

src/vs/workbench/contrib/debug/browser/repl.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,12 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
606606
await this.clipboardService.writeText(this.getVisibleContent());
607607
return Promise.resolve();
608608
}));
609+
actions.push(new Action('debug.replPaste', localize('paste', "Paste"), undefined, true, async () => {
610+
const clipboardText = await this.clipboardService.readText();
611+
if (clipboardText) {
612+
this.replInput.setValue(this.replInput.getValue().concat(clipboardText));
613+
}
614+
}));
609615
actions.push(new Action('debug.collapseRepl', localize('collapse', "Collapse All"), undefined, true, () => {
610616
this.tree.collapseAll();
611617
this.replInput.focus();

0 commit comments

Comments
 (0)