File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
src/client/debugger/extension/configuration Expand file tree Collapse file tree 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
8080 // editor context where it was triggered.
8181 throw Error ( 'This configuration can only be used as defined by `purpose`.' ) ;
8282 } else {
83- if ( ( await this . experiments . inExperiment ( CacheDebugConfig . experiment ) ) && this . cacheDebugConfig ) {
84- debugConfiguration = cloneDeep ( this . cacheDebugConfig ) ;
85- }
8683 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 ) ;
9395 }
94- this . cacheDebugConfig = cloneDeep ( debugConfiguration ) ;
9596 }
9697 return this . launchResolver . resolveDebugConfiguration (
9798 folder ,
You can’t perform that action at this time.
0 commit comments