Watch view: reveal newly added expression

fixes #84006
This commit is contained in:
isidor 2019-11-20 17:18:12 +01:00
parent 0ea4167ff6
commit 22c104ce5b

View file

@ -86,11 +86,14 @@ export class WatchExpressionsView extends ViewletPanel {
this._register(this.tree.onContextMenu(e => this.onContextMenu(e)));
this._register(this.tree.onMouseDblClick(e => this.onMouseDblClick(e)));
this._register(this.debugService.getModel().onDidChangeWatchExpressions(we => {
this._register(this.debugService.getModel().onDidChangeWatchExpressions(async we => {
if (!this.isBodyVisible()) {
this.needsRefresh = true;
} else {
this.tree.updateChildren();
await this.tree.updateChildren();
if (we instanceof Expression) {
this.tree.reveal(we);
}
}
}));
this._register(this.debugService.getViewModel().onDidFocusStackFrame(() => {