2
2
* Copyright (C) Microsoft Corporation. All rights reserved.
3
3
*--------------------------------------------------------*/
4
4
5
- import path = require( "path" ) ;
6
5
import vscode = require( "vscode" ) ;
7
6
import { CancellationToken , DebugConfiguration , DebugConfigurationProvider ,
8
7
ExtensionContext , WorkspaceFolder } from "vscode" ;
@@ -90,7 +89,9 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider
90
89
cwd : "${file}" ,
91
90
} ,
92
91
] ;
93
- } else if ( launchSelection . id === launchScriptId ) {
92
+ }
93
+
94
+ if ( launchSelection . id === launchScriptId ) {
94
95
return [
95
96
{
96
97
name : "PowerShell: Launch Script" ,
@@ -100,7 +101,9 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider
100
101
cwd : "${workspaceFolder}" ,
101
102
} ,
102
103
] ;
103
- } else if ( launchSelection . id === interactiveSessionId ) {
104
+ }
105
+
106
+ if ( launchSelection . id === interactiveSessionId ) {
104
107
return [
105
108
{
106
109
name : "PowerShell: Interactive Session" ,
@@ -111,7 +114,7 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider
111
114
] ;
112
115
}
113
116
114
- // Return the "Attach to PowerShell Host Process" debug configuration
117
+ // Last remaining possibility is attach to host process
115
118
return [
116
119
{
117
120
name : "PowerShell: Attach to PowerShell Host Process" ,
0 commit comments