Don't make stopForceRenderingAbove create the widget.
This commit is contained in:
parent
dea81025e8
commit
d17db2359a
|
@ -977,6 +977,10 @@ export class IdleValue<T> {
|
|||
}
|
||||
return this._value!;
|
||||
}
|
||||
|
||||
get isInitialized(): boolean {
|
||||
return this._didRun;
|
||||
}
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
|
|
@ -593,6 +593,10 @@ export class SuggestController implements IEditorContribution {
|
|||
}
|
||||
|
||||
stopForceRenderingAbove() {
|
||||
if (!this.widget.isInitialized) {
|
||||
// This method has no effect if the widget is not initialized yet.
|
||||
return;
|
||||
}
|
||||
this.widget.value.stopForceRenderingAbove();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue