Skip to content

Commit 6aef7cf

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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/features/DebugSession.ts

+6-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,6 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider
111114
];
112115
}
113116

114-
// Return the "Attach to PowerShell Host Process" debug configuration
115117
return [
116118
{
117119
name: "PowerShell: Attach to PowerShell Host Process",

0 commit comments

Comments
 (0)