@@ -29,9 +29,9 @@ export function initializeEnvironmentView(context: vscode.ExtensionContext) {
2929 } ;
3030
3131 const localActionsWatcher = vscode . workspace . createFileSystemWatcher ( `**/.vscode/actions.json` ) ;
32- localActionsWatcher . onDidCreate ( ( ) => environmentView . actionsNode ?. forceRefresh ( ) ) ;
33- localActionsWatcher . onDidChange ( ( ) => environmentView . actionsNode ?. forceRefresh ( ) ) ;
34- localActionsWatcher . onDidDelete ( ( ) => environmentView . actionsNode ?. forceRefresh ( ) ) ;
32+ localActionsWatcher . onDidCreate ( ( ) => environmentView . actionsNode ?. forceRefresh ( ) ) ;
33+ localActionsWatcher . onDidChange ( ( ) => environmentView . actionsNode ?. forceRefresh ( ) ) ;
34+ localActionsWatcher . onDidDelete ( ( ) => environmentView . actionsNode ?. forceRefresh ( ) ) ;
3535
3636 context . subscriptions . push (
3737 environmentTreeViewer ,
@@ -390,8 +390,8 @@ export function initializeEnvironmentView(context: vscode.ExtensionContext) {
390390class EnvironmentView implements vscode . TreeDataProvider < BrowserItem > {
391391 private readonly emitter = new vscode . EventEmitter < BrowserItem | BrowserItem [ ] | undefined | null | void > ( ) ;
392392 readonly onDidChangeTreeData = this . emitter . event ;
393- actionsNode ?: ActionsNode
394- profilesNode ?: ProfilesNode
393+ readonly actionsNode = new ActionsNode ( ) ;
394+ readonly profilesNode = new ProfilesNode ( ) ;
395395
396396 refresh ( target ?: BrowserItem ) {
397397 this . emitter . fire ( target ) ;
@@ -410,8 +410,6 @@ class EnvironmentView implements vscode.TreeDataProvider<BrowserItem> {
410410 return item . getChildren ?.( ) ;
411411 }
412412 else {
413- this . actionsNode = new ActionsNode ( ) ;
414- this . profilesNode = new ProfilesNode ( ) ;
415413 return [
416414 this . actionsNode ,
417415 new CustomVariablesNode ( ) ,
0 commit comments