File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed
src/client/debugger/extension/configuration Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 4
4
5
5
### Fixes
6
6
7
+ 1. Fix for debug configuration used when no launch.json exists is still used after launch.json is created.
8
+ ([#17353](https://github.com/Microsoft/vscode-python/issues/17353))
7
9
1. Ensure default python executable to use is 'python' instead of ''.
8
10
([#17089](https://github.com/Microsoft/vscode-python/issues/17089))
9
11
1. Ensure workspace interpreters are discovered and watched when in `pythonDiscoveryModuleWithoutWatcher` experiment.
10
12
([#17144](https://github.com/Microsoft/vscode-python/issues/17144))
11
13
1. Do path comparisons appropriately in the new discovery component.
12
14
([#17244](https://github.com/Microsoft/vscode-python/issues/17244))
15
+ 1. Fix for test result not found for files starting with py.
16
+ ([#17270](https://github.com/Microsoft/vscode-python/issues/17270))
13
17
1. Fix for unable to import when running unittest.
14
18
([#17280](https://github.com/Microsoft/vscode-python/issues/17280))
15
19
1. Fix for multiple folders in `pytest` args.
26
30
([#17309](https://github.com/Microsoft/vscode-python/issues/17309))
27
31
1. For CI ensure `tensorboard` is installed in python 3 environments only.
28
32
([#17325](https://github.com/Microsoft/vscode-python/issues/17325))
29
- 1. Fix for test result not found for files starting with py.
30
- ([#17270](https://github.com/Microsoft/vscode-python/issues/17270))
31
33
32
34
### Thanks
33
35
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