Don't make stopForceRenderingAbove create the widget.

This commit is contained in:
Henning Dieterichs 2021-08-11 14:33:31 +02:00
parent dea81025e8
commit d17db2359a
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06
2 changed files with 8 additions and 0 deletions

View file

@ -977,6 +977,10 @@ export class IdleValue<T> {
}
return this._value!;
}
get isInitialized(): boolean {
return this._didRun;
}
}
//#endregion

View file

@ -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();
}
}