@@ -8,7 +8,7 @@ import * as path from "path";
8
8
import * as requireFromString from "require-from-string" ;
9
9
import { ExtensionContext } from "vscode" ;
10
10
import { ConfigurationChangeEvent , Disposable , MessageItem , window , workspace , WorkspaceConfiguration } from "vscode" ;
11
- import { Endpoint , globalStateLeetcodeHasInited , IProblem , supportedPlugins } from "./shared" ;
11
+ import { Endpoint , IProblem , leetcodeHasInited , supportedPlugins } from "./shared" ;
12
12
import { executeCommand , executeCommandWithProgress } from "./utils/cpUtils" ;
13
13
import { DialogOptions , openUrl } from "./utils/uiUtils" ;
14
14
import * as wsl from "./utils/wslUtils" ;
@@ -37,7 +37,7 @@ class LeetCodeExecutor implements Disposable {
37
37
}
38
38
39
39
public async meetRequirements ( context : ExtensionContext ) : Promise < boolean > {
40
- const hasInited : boolean | undefined = context . globalState . get ( globalStateLeetcodeHasInited ) ;
40
+ const hasInited : boolean | undefined = context . globalState . get ( leetcodeHasInited ) ;
41
41
if ( ! hasInited ) {
42
42
await this . removeOldCache ( ) ;
43
43
}
@@ -72,7 +72,7 @@ class LeetCodeExecutor implements Disposable {
72
72
}
73
73
}
74
74
// Set the global state HasInited true to skip delete old cache after init
75
- context . globalState . update ( globalStateLeetcodeHasInited , true ) ;
75
+ context . globalState . update ( leetcodeHasInited , true ) ;
76
76
return true ;
77
77
}
78
78
0 commit comments