From 1f8d168586b2cb16e0a29b360a3316a138456160 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Wed, 26 Sep 2018 20:28:53 -0600 Subject: [PATCH] Explicitly return undefined from resolveDbgConfig when sessn not started 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. https://github.com/Microsoft/vscode/issues/54213#issuecomment-420965778 --- src/features/DebugSession.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/DebugSession.ts b/src/features/DebugSession.ts index 13fa25ddd6..6917fffa05 100644 --- a/src/features/DebugSession.ts +++ b/src/features/DebugSession.ts @@ -53,7 +53,7 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider const msg = "Cannot debug or run a PowerShell script until the PowerShell session has started. " + "Wait for the PowerShell session to finish starting and try again."; vscode.window.showWarningMessage(msg); - return; + return undefined; } // Starting a debug session can be done when there is no document open e.g. attach to PS host process