22 * Copyright (C) Microsoft Corporation. All rights reserved.
33 *--------------------------------------------------------*/
44
5- import path = require( "path" ) ;
65import vscode = require( "vscode" ) ;
76import { 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