File tree 2 files changed +12
-10
lines changed
src/client/debugger/extension/configuration 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change
1
+ Fix for debug configuration used when no launch.json exists is still used after launch.json is created.
Original file line number Diff line number Diff line change @@ -80,18 +80,19 @@ export class PythonDebugConfigurationService implements IDebugConfigurationServi
80
80
// editor context where it was triggered.
81
81
throw Error ( 'This configuration can only be used as defined by `purpose`.' ) ;
82
82
} else {
83
- if ( ( await this . experiments . inExperiment ( CacheDebugConfig . experiment ) ) && this . cacheDebugConfig ) {
84
- debugConfiguration = cloneDeep ( this . cacheDebugConfig ) ;
85
- }
86
83
if ( Object . keys ( debugConfiguration ) . length === 0 ) {
87
- const configs = await this . provideDebugConfigurations ( folder , token ) ;
88
- if ( configs === undefined ) {
89
- return ;
90
- }
91
- if ( Array . isArray ( configs ) && configs . length === 1 ) {
92
- debugConfiguration = configs [ 0 ] ;
84
+ if ( ( await this . experiments . inExperiment ( CacheDebugConfig . experiment ) ) && this . cacheDebugConfig ) {
85
+ debugConfiguration = cloneDeep ( this . cacheDebugConfig ) ;
86
+ } else {
87
+ const configs = await this . provideDebugConfigurations ( folder , token ) ;
88
+ if ( configs === undefined ) {
89
+ return ;
90
+ }
91
+ if ( Array . isArray ( configs ) && configs . length === 1 ) {
92
+ debugConfiguration = configs [ 0 ] ;
93
+ }
94
+ this . cacheDebugConfig = cloneDeep ( debugConfiguration ) ;
93
95
}
94
- this . cacheDebugConfig = cloneDeep ( debugConfiguration ) ;
95
96
}
96
97
return this . launchResolver . resolveDebugConfiguration (
97
98
folder ,
You can’t perform that action at this time.
0 commit comments