Merge pull request #121396 from limitedmage/suggestrace

Fix race condition in showing and hiding suggestWidget
This commit is contained in:
Johannes Rieken 2021-04-19 08:48:01 +02:00 committed by GitHub
commit cc778d679f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -440,6 +440,7 @@ export class SuggestWidget implements IDisposable {
this._contentWidget.hide();
this._ctxSuggestWidgetVisible.reset();
this._ctxSuggestWidgetMultipleSuggestions.reset();
this._showTimeout.cancel();
this.element.domNode.classList.remove('visible');
this._list.splice(0, this._list.length);
this._focusedItem = undefined;