Skip to content

Commit 249c30e

Browse files
author
Tim Etchells
committed
Fix context ID refresh for auto build
1 parent d28d787 commit 249c30e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/src/microclimate/project/Project.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export default class Project implements ITreeItemAdaptable, vscode.QuickPickItem
173173

174174
// Logger.log(`${this.name} has a new status:`, this._state);
175175
if (changed) {
176+
Log.d(`${this.name} has changed`);
176177
this.connection.onChange();
177178
this.tryRefreshProjectInfoPage();
178179
}
@@ -450,6 +451,8 @@ export default class Project implements ITreeItemAdaptable, vscode.QuickPickItem
450451
if (changed) {
451452
this.tryRefreshProjectInfoPage();
452453
Log.d(`New autoBuild for ${this.name} is ${this._autoBuildEnabled}`);
454+
// since setAutoBuild can be called outside of update(), we have to trigger the tree update here too
455+
this.connection.onChange();
453456
}
454457

455458
return changed;

0 commit comments

Comments
 (0)