File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { globalState } from './services/global-state';
5
5
// Import the module and reference it with the alias vscode in your code below
6
6
import * as vscode from 'vscode' ;
7
7
import { accountService } from './services/account.service' ;
8
- import { beginListenConfigurationChangeEvent , beginListenWorkspaceFolderChangeEvent } from './services/check-workspace' ;
8
+ import {
9
+ observeConfigurationChange ,
10
+ beginListenWorkspaceFolderChangeEvent as observeWorkspaceFolderChange ,
11
+ } from './services/check-workspace' ;
9
12
10
13
// this method is called when your extension is activated
11
14
// your extension is activated the very first time the command is executed
@@ -16,8 +19,8 @@ export function activate(context: vscode.ExtensionContext) {
16
19
17
20
registerCommands ( ) ;
18
21
registerTreeViews ( ) ;
19
- beginListenConfigurationChangeEvent ( ) ;
20
- beginListenWorkspaceFolderChangeEvent ( ) ;
22
+ observeConfigurationChange ( ) ;
23
+ observeWorkspaceFolderChange ( ) ;
21
24
}
22
25
23
26
// this method is called when your extension is deactivated
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export const isTargetWorkspace = (): boolean => {
10
10
return result ;
11
11
} ;
12
12
13
- export const beginListenConfigurationChangeEvent = ( ) => {
13
+ export const observeConfigurationChange = ( ) => {
14
14
globalState . extensionContext ?. subscriptions . push (
15
15
workspace . onDidChangeConfiguration ( ev =>
16
16
ev . affectsConfiguration ( globalState . extensionName ) ? isTargetWorkspace ( ) : false
You can’t perform that action at this time.
0 commit comments