Register disposables for cleanup - Part 1 (#24092)

This commit is contained in:
Cheena Malhotra
2023-08-07 16:44:23 -07:00
committed by GitHub
parent 18a79c8d82
commit 7a417f01ed
33 changed files with 127 additions and 124 deletions

View File

@@ -646,12 +646,12 @@ export class ListDatabasesActionItem extends Disposable implements IActionViewIt
) {
super();
this._databaseListDropdown = $('.databaseListDropdown');
this._dropdown = new Dropdown(this._databaseListDropdown, contextViewProvider, {
this._dropdown = this._register(new Dropdown(this._databaseListDropdown, contextViewProvider, {
strictSelection: true,
placeholder: this._selectDatabaseString,
ariaLabel: this._selectDatabaseString,
...defaultEditableDropdownStyles
});
}));
// Allows database selector to commit typed or pasted DB names without the need to click
// or press enter to make a selection when focus is moved away from the selector.