You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/features/DebugSession.ts
+27-2
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ import {
11
11
DebugConfiguration,
12
12
DebugConfigurationProvider,
13
13
DebugSession,
14
+
Disposable,
14
15
ExtensionContext,
15
16
WorkspaceFolder
16
17
}from"vscode";
@@ -92,7 +93,7 @@ export class DebugSessionFeature extends LanguageClientConsumer
92
93
93
94
if(sessionDetails===undefined){
94
95
voidthis.logger.writeAndShowError(`PowerShell session details not available for ${session.name}`);
95
-
return;
96
+
returnundefined;
96
97
}
97
98
98
99
this.logger.writeVerbose(`Connecting to pipe: ${sessionDetails.debugServicePipeName}`);
@@ -149,6 +150,26 @@ export class DebugSessionFeature extends LanguageClientConsumer
149
150
returnundefined;
150
151
}
151
152
153
+
// Wire up a handler to capture the dotnet session and stop it before PowerShell, otherwise it will emit an error that its process unexpectedly stopped.
0 commit comments