File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/client/pythonEnvironments/base Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class PythonEnvInfoCache implements IEnvsCache {
55
55
constructor ( private readonly isComplete : CompleteEnvInfoFunction ) { }
56
56
57
57
public initialize ( ) : void {
58
- this . persistentStorage = createGlobalPersistentStore < PythonEnvInfo [ ] > ( 'mykey ' ) ;
58
+ this . persistentStorage = createGlobalPersistentStore < PythonEnvInfo [ ] > ( 'PYTHON_ENV_INFO_CACHE ' ) ;
59
59
this . envsList = this . persistentStorage ?. value ;
60
60
}
61
61
@@ -84,7 +84,7 @@ export class PythonEnvInfoCache implements IEnvsCache {
84
84
public async flush ( ) : Promise < void > {
85
85
const completeEnvs = this . envsList ?. filter ( this . isComplete ) ;
86
86
87
- if ( completeEnvs ) {
87
+ if ( completeEnvs ?. length ) {
88
88
await this . persistentStorage ?. updateValue ( completeEnvs ) ;
89
89
}
90
90
}
You can’t perform that action at this time.
0 commit comments