mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
Reverting a change to ensure immediate notebook fix (#15326)
This commit is contained in:
@@ -216,12 +216,6 @@ export class SelectBox extends vsSelectBox {
|
||||
let selectOptions: SelectOptionItemSQL[] = SelectBox.createOptions(options);
|
||||
this.populateOptionsDictionary(selectOptions);
|
||||
super.setOptions(selectOptions, selected);
|
||||
// Calling super.setOptions even with a value selected doesn't fire the onSelected event and doesn't update this._selectedOption,
|
||||
// So manually updating it here to ensure that the value is kept in sync.
|
||||
// Currently we're not firing the onDidSelect event in this case to align with the base implementation, but that can change if there's a need for that to happen
|
||||
if (this._dialogOptions !== undefined) {
|
||||
this._selectedOption = this._dialogOptions[selected]?.value;
|
||||
}
|
||||
}
|
||||
|
||||
public get value(): string {
|
||||
|
||||
Reference in New Issue
Block a user