@@ -13,11 +13,13 @@ export class TaskExtension {
13
13
private _watcher : vscode . FileSystemWatcher ;
14
14
private _changeTimeout : NodeJS . Timeout | null = null ;
15
15
private _nesting : boolean ;
16
+ private _status : boolean ;
16
17
17
18
constructor ( ) {
18
19
this . _activityBar = new ActivityBar ( ) ;
19
20
this . _watcher = vscode . workspace . createFileSystemWatcher ( "**/*.{yml,yaml}" ) ;
20
21
this . _nesting = settings . tree . nesting ;
22
+ this . _status = settings . tree . status ;
21
23
}
22
24
23
25
public async update ( checkForUpdates ?: boolean ) : Promise < void > {
@@ -36,7 +38,7 @@ export class TaskExtension {
36
38
// Read taskfiles
37
39
let p : Promise < Namespace | undefined > [ ] = [ ] ;
38
40
vscode . workspace . workspaceFolders ?. forEach ( ( folder ) => {
39
- p . push ( taskfileSvc . read ( folder . uri . fsPath , this . _nesting ) ) ;
41
+ p . push ( taskfileSvc . read ( folder . uri . fsPath , this . _nesting , this . _status ) ) ;
40
42
} ) ;
41
43
42
44
return Promise . allSettled ( p ) ;
@@ -288,6 +290,10 @@ export class TaskExtension {
288
290
log . info ( "Detected changes to configuration" ) ;
289
291
if ( event . affectsConfiguration ( "task" ) ) {
290
292
settings . update ( ) ;
293
+ this . _nesting = settings . tree . nesting ;
294
+ this . _status = settings . tree . status ;
295
+ this . refresh ( false ) ;
296
+ vscode . commands . executeCommand ( 'setContext' , 'vscode-task:treeNesting' , this . _nesting ) ;
291
297
}
292
298
}
293
299
}
0 commit comments