We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f709269 commit 9dcdc62Copy full SHA for 9dcdc62
src/features/DebugSession.ts
@@ -51,8 +51,10 @@ export class DebugSessionFeature implements IFeature {
51
if (config.request === "attach") {
52
let versionDetails = this.sessionManager.getPowerShellVersionDetais();
53
if (versionDetails.edition.toLowerCase() === "core") {
54
- vscode.window.showErrorMessage("PowerShell Core does not support attaching to a PowerShell host process.");
55
- return;
+ let msg = "PowerShell Core does not support attaching to a PowerShell host process.";
+ return vscode.window.showErrorMessage(msg).then(_ => {
56
+ return undefined;
57
+ });
58
}
59
60
0 commit comments