提交 56499091 编写于 作者: J Johannes Rieken

drop userSize at session end, not when hiding widget,...

drop userSize at session end, not when hiding widget, https://github.com/microsoft/vscode/issues/109462
上级 9f33b31b
......@@ -421,7 +421,7 @@ export class SuggestWidget implements IDisposable {
switch (state) {
case State.Hidden:
dom.hide(this.messageElement, this.listElement, this.status.element);
this._details.hide();
this._details.hide(true);
this._contentWidget.hide();
this.ctxSuggestWidgetVisible.reset();
this.ctxSuggestWidgetMultipleSuggestions.reset();
......
......@@ -304,11 +304,13 @@ export class SuggestDetailsOverlay implements IOverlayWidget {
}
}
hide(): void {
hide(sessionEnded: boolean = false): void {
if (this._added) {
this._editor.removeOverlayWidget(this);
this._added = false;
this._anchorBox = undefined;
}
if (sessionEnded) {
this._userSize = undefined;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册