mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 18:05:11 +00:00
Clear pending layouts when hiding
This commit is contained in:
parent
ce1d0bf999
commit
2fd4a68016
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue