Skip to content

Commit

Permalink
Explicitly return undefined from resolveDbgConfig when sessn not star…
Browse files Browse the repository at this point in the history
…ted (#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)
  • Loading branch information
rkeithhill authored and rjmholt committed Sep 27, 2018
1 parent f18e230 commit 7afec44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/DebugSession.ts
Expand Up @@ -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
Expand Down

0 comments on commit 7afec44

Please sign in to comment.