File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 442
442
"type" : " PowerShell" ,
443
443
"request" : " launch" ,
444
444
"script" : " ^\"\\ ${file}\" " ,
445
- "cwd" : " ^\"\\ ${workspaceFolder }\" "
445
+ "cwd" : " ^\"\\ ${file }\" "
446
446
}
447
447
},
448
448
{
Original file line number Diff line number Diff line change @@ -175,10 +175,10 @@ export class DebugSessionFeature extends LanguageClientConsumer
175
175
const settings = Settings . load ( ) ;
176
176
177
177
// If the createTemporaryIntegratedConsole field is not specified in the launch config, set the field using
178
- // the value from the corresponding setting. Otherwise, the launch config value overrides the setting.
179
- if ( config . createTemporaryIntegratedConsole === undefined ) {
180
- config . createTemporaryIntegratedConsole = settings . debugging . createTemporaryIntegratedConsole ;
181
- }
178
+ // the value from the corresponding setting. Otherwise, the launch config value overrides the setting.
179
+ config . createTemporaryIntegratedConsole =
180
+ config . createTemporaryIntegratedConsole ??
181
+ settings . debugging . createTemporaryIntegratedConsole ;
182
182
183
183
if ( config . request === "attach" ) {
184
184
const platformDetails = getPlatformDetails ( ) ;
@@ -300,6 +300,9 @@ export class DebugSessionFeature extends LanguageClientConsumer
300
300
}
301
301
}
302
302
303
+ // NOTE: There is a tight coupling to a weird setting in
304
+ // `package.json` for the Launch Current File configuration where
305
+ // the default cwd is set to ${file}.
303
306
if ( ( currentDocument !== undefined ) && ( config . cwd === "${file}" ) ) {
304
307
config . cwd = currentDocument . fileName ;
305
308
}
You can’t perform that action at this time.
0 commit comments