Skip to content

Commit 7afec44

Browse files
rkeithhillrjmholt
authored andcommitted
Explicitly return undefined from resolveDbgConfig when sessn not started (#1548)
In the September drop of VSCode this fixes the issue with VSCode opening launch.json in this case. Technically just returning nothing works but better to be explicit in this case I think. microsoft/vscode#54213 (comment)
1 parent f18e230 commit 7afec44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/DebugSession.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider
5353
const msg = "Cannot debug or run a PowerShell script until the PowerShell session has started. " +
5454
"Wait for the PowerShell session to finish starting and try again.";
5555
vscode.window.showWarningMessage(msg);
56-
return;
56+
return undefined;
5757
}
5858

5959
// Starting a debug session can be done when there is no document open e.g. attach to PS host process

0 commit comments

Comments
 (0)