Skip to content

Commit

Permalink
Fix hiding (#49340)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Jun 22, 2018
1 parent 2ae783a commit f315912
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/vs/workbench/api/node/extHostQuickOpen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,13 @@ class ExtHostQuickInput implements QuickInput {
this._pendingUpdate[key] = value === undefined ? null : value;
}

if (!this._visible) {
return;
}

if ('visible' in this._pendingUpdate) {
if (this._updateTimeout) {
clearTimeout(this._updateTimeout);
this._updateTimeout = undefined;
}
this.dispatchUpdate();
} else if (!this._updateTimeout) {
} else if (this._visible && !this._updateTimeout) {
// Defer the update so that multiple changes to setters dont cause a redraw each
this._updateTimeout = setTimeout(() => {
this._updateTimeout = undefined;
Expand Down

0 comments on commit f315912

Please sign in to comment.