提交 f3159128 编写于 作者: C Christof Marti

Fix hiding (#49340)

上级 2ae783ae
...@@ -396,17 +396,13 @@ class ExtHostQuickInput implements QuickInput { ...@@ -396,17 +396,13 @@ class ExtHostQuickInput implements QuickInput {
this._pendingUpdate[key] = value === undefined ? null : value; this._pendingUpdate[key] = value === undefined ? null : value;
} }
if (!this._visible) {
return;
}
if ('visible' in this._pendingUpdate) { if ('visible' in this._pendingUpdate) {
if (this._updateTimeout) { if (this._updateTimeout) {
clearTimeout(this._updateTimeout); clearTimeout(this._updateTimeout);
this._updateTimeout = undefined; this._updateTimeout = undefined;
} }
this.dispatchUpdate(); 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 // Defer the update so that multiple changes to setters dont cause a redraw each
this._updateTimeout = setTimeout(() => { this._updateTimeout = setTimeout(() => {
this._updateTimeout = undefined; this._updateTimeout = undefined;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册