Clear pending layouts when hiding

This commit is contained in:
Daniel Imms 2022-10-24 05:40:16 -07:00
parent ce1d0bf999
commit 2fd4a68016
No known key found for this signature in database
GPG key ID: E5CF412B63651C69

View file

@ -683,6 +683,7 @@ export class SuggestWidget implements IDisposable {
toggleDetails(): void {
if (this._isDetailsVisible()) {
// hide details widget
this._pendingShowDetails.clear();
this._ctxSuggestWidgetDetailsVisible.set(false);
this._setDetailsVisible(false);
this._details.hide();
@ -727,7 +728,10 @@ export class SuggestWidget implements IDisposable {
}
hideWidget(): void {
this._pendingLayout.clear();
this._pendingShowDetails.clear();
this._loadingTimeout?.dispose();
this._setState(State.Hidden);
this._onDidHide.fire(this);
this.element.clearSashHoverState();