File tree 1 file changed +4
-2
lines changed
src/client/debugger/extension/configuration/resolvers
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver<Launc
55
55
}
56
56
57
57
const workspaceFolder = LaunchConfigurationResolver . getWorkspaceFolder ( folder ) ;
58
+ // Pass workspace folder so we can get this when we get debug events firing.
59
+ // Do it here itself instead of `resolveDebugConfigurationWithSubstitutedVariables` which is called after
60
+ // this method, as in order to calculate substituted variables, this might be needed.
61
+ debugConfiguration . workspaceFolder = workspaceFolder ?. fsPath ;
58
62
await this . resolveAndUpdatePaths ( workspaceFolder , debugConfiguration ) ;
59
63
if ( debugConfiguration . clientOS === undefined ) {
60
64
debugConfiguration . clientOS = getOSType ( ) === OSType . Windows ? 'windows' : 'unix' ;
@@ -135,8 +139,6 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver<Launc
135
139
// Populate justMyCode using debugStdLib
136
140
debugConfiguration . justMyCode = ! debugConfiguration . debugStdLib ;
137
141
}
138
- // Pass workspace folder so we can get this when we get debug events firing.
139
- debugConfiguration . workspaceFolder = workspaceFolder ? workspaceFolder . fsPath : undefined ;
140
142
const debugOptions = debugConfiguration . debugOptions ! ;
141
143
if ( ! debugConfiguration . justMyCode ) {
142
144
LaunchConfigurationResolver . debugOption ( debugOptions , DebugOptions . DebugStdLib ) ;
You can’t perform that action at this time.
0 commit comments