Skip to content

Commit a8b7be5

Browse files
committed
Address PR feedback, remove path as it wasn't being used
1 parent 0f39d44 commit a8b7be5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/features/DebugSession.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright (C) Microsoft Corporation. All rights reserved.
33
*--------------------------------------------------------*/
44

5-
import path = require("path");
65
import vscode = require("vscode");
76
import { CancellationToken, DebugConfiguration, DebugConfigurationProvider,
87
ExtensionContext, WorkspaceFolder } from "vscode";
@@ -90,7 +89,9 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider
9089
cwd: "${file}",
9190
},
9291
];
93-
} else if (launchSelection.id === launchScriptId) {
92+
}
93+
94+
if (launchSelection.id === launchScriptId) {
9495
return [
9596
{
9697
name: "PowerShell: Launch Script",
@@ -100,7 +101,9 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider
100101
cwd: "${workspaceFolder}",
101102
},
102103
];
103-
} else if (launchSelection.id === interactiveSessionId) {
104+
}
105+
106+
if (launchSelection.id === interactiveSessionId) {
104107
return [
105108
{
106109
name: "PowerShell: Interactive Session",
@@ -111,7 +114,7 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider
111114
];
112115
}
113116

114-
// Return the "Attach to PowerShell Host Process" debug configuration
117+
// Last remaining possibility is attach to host process
115118
return [
116119
{
117120
name: "PowerShell: Attach to PowerShell Host Process",

0 commit comments

Comments
 (0)