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.
sendKeyPress
1 parent 98f2b44 commit f2d8cf1Copy full SHA for f2d8cf1
src/session.ts
@@ -270,6 +270,20 @@ export class SessionManager implements Middleware {
270
sessionPath,
271
sessionSettings);
272
273
+ // Similar to the regular integrated console, we need to send a key
274
+ // press to the process spawned for temporary integrated consoles when
275
+ // the server requests a cancellation os Console.ReadKey.
276
+ //
277
+ // TODO: There may be multiple sessions running in parallel, so we need
278
+ // to track a process per session, but that already isn't being done.
279
+ vscode.debug.onDidReceiveDebugSessionCustomEvent(
280
+ e => {
281
+ if (e.event === "powerShell/sendKeyPress") {
282
+ this.debugSessionProcess.sendKeyPress();
283
+ }
284
285
+ );
286
+
287
return this.debugSessionProcess;
288
}
289
0 commit comments