File tree 3 files changed +4
-16
lines changed
3 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -150,12 +150,7 @@ export class DebugSessionFeature extends LanguageClientConsumer
150
150
this . handlers = [
151
151
languageClient . onNotification (
152
152
StartDebuggerNotificationType ,
153
- // TODO: Use a named debug configuration.
154
- ( ) => void debug . startDebugging ( undefined , {
155
- request : "launch" ,
156
- type : "PowerShell" ,
157
- name : "PowerShell: Interactive Session"
158
- } ) ) ,
153
+ ( ) => void debug . startDebugging ( undefined , defaultDebugConfigurations [ DebugConfig . InteractiveSession ] ) ) ,
159
154
160
155
languageClient . onNotification (
161
156
StopDebuggerNotificationType ,
@@ -401,7 +396,7 @@ export class DebugSessionFeature extends LanguageClientConsumer
401
396
} ) ;
402
397
403
398
// Start a child debug session to attach the dotnet debugger
404
- // TODO: Accomodate multi-folder workspaces if the C# code is in a different workspace folder
399
+ // TODO: Accommodate multi-folder workspaces if the C# code is in a different workspace folder
405
400
await debug . startDebugging ( undefined , dotnetAttachConfig , session ) ;
406
401
this . logger . writeVerbose ( `Dotnet Attach Debug configuration: ${ JSON . stringify ( dotnetAttachConfig ) } ` ) ;
407
402
this . logger . write ( `Attached dotnet debugger to process ${ pid } ` ) ;
@@ -754,4 +749,3 @@ export class PickRunspaceFeature extends LanguageClientConsumer {
754
749
this . waitingForClientToken = undefined ;
755
750
}
756
751
}
757
-
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { LanguageClient } from "vscode-languageclient/node";
12
12
import { ILogger } from "../logging" ;
13
13
import { getSettings , validateCwdSetting } from "../settings" ;
14
14
import { LanguageClientConsumer } from "../languageClientConsumer" ;
15
+ import { DebugConfig , defaultDebugConfigurations } from "./DebugSession" ;
15
16
16
17
export interface IExtensionCommand {
17
18
name : string ;
@@ -187,13 +188,7 @@ export class ExtensionCommandsFeature extends LanguageClientConsumer {
187
188
188
189
vscode . commands . registerCommand ( "PowerShell.Debug.Start" ,
189
190
async ( ) => {
190
- // TODO: Use a named debug configuration.
191
- await vscode . debug . startDebugging ( undefined , {
192
- name : "PowerShell: Launch Current File" ,
193
- type : "PowerShell" ,
194
- request : "launch" ,
195
- script : "${file}" ,
196
- } ) ;
191
+ await vscode . debug . startDebugging ( undefined , defaultDebugConfigurations [ DebugConfig . LaunchCurrentFile ] ) ;
197
192
} )
198
193
] ;
199
194
}
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ export class ISECompatibilityFeature implements vscode.Disposable {
32
32
private _originalSettings : Record < string , boolean | string | undefined > = { } ;
33
33
34
34
constructor ( ) {
35
- // TODO: This test isn't great.
36
35
const testSetting = ISECompatibilityFeature . settings [ ISECompatibilityFeature . settings . length - 1 ] ;
37
36
this . _iseModeEnabled = vscode . workspace . getConfiguration ( testSetting . path ) . get ( testSetting . name ) === testSetting . value ;
38
37
this . _commandRegistrations = [
You can’t perform that action at this time.
0 commit comments