File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ export function activate(context: vscode.ExtensionContext): void {
20
20
21
21
output = vscode . window . createOutputChannel ( "Source Engine Support" ) ;
22
22
context . subscriptions . push ( output ) ;
23
-
24
- config = vscode . workspace . getConfiguration ( "sourceEngine" ) ;
23
+
24
+ updateConfig ( ) ;
25
+ const configChangeEvent = vscode . workspace . onDidChangeConfiguration ( updateConfig ) ;
26
+ context . subscriptions . push ( configChangeEvent ) ;
25
27
26
28
keyvalue . init ( context ) ;
27
29
vmt . init ( context ) ;
@@ -33,6 +35,8 @@ export function activate(context: vscode.ExtensionContext): void {
33
35
output . appendLine ( `Started Source Engine Support v${ packageJson . version } ` ) ;
34
36
}
35
37
36
- export let config : vscode . WorkspaceConfiguration ;
38
+ export let config : vscode . WorkspaceConfiguration ;
39
+
40
+ const updateConfig = ( ) => config = vscode . workspace . getConfiguration ( "sourceEngine" ) ;
37
41
38
42
export function deactivate ( ) : void { }
You can’t perform that action at this time.
0 commit comments