File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,20 @@ export class SessionManager implements Middleware {
270
270
sessionPath ,
271
271
sessionSettings ) ;
272
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
+
273
287
return this . debugSessionProcess ;
274
288
}
275
289
You can’t perform that action at this time.
0 commit comments