mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Better fix for file browser race condition (#23879)
This commit is contained in:
@@ -115,8 +115,7 @@ export class FileBrowserDialog extends Modal {
|
|||||||
): void {
|
): void {
|
||||||
this._viewModel.initialize(ownerUri, expandPath, fileFilters, fileValidationServiceType);
|
this._viewModel.initialize(ownerUri, expandPath, fileFilters, fileValidationServiceType);
|
||||||
this._viewModel.openFileBrowser(0, false).catch(err => onUnexpectedError(err));
|
this._viewModel.openFileBrowser(0, false).catch(err => onUnexpectedError(err));
|
||||||
this._fileFilterSelectBox.setOptions(this._viewModel.formattedFileFilters);
|
this._fileFilterSelectBox.setOptions(this._viewModel.formattedFileFilters, 0);
|
||||||
this._fileFilterSelectBox.select(0);
|
|
||||||
this._filePathInputBox.value = expandPath;
|
this._filePathInputBox.value = expandPath;
|
||||||
this._isFolderSelected = true;
|
this._isFolderSelected = true;
|
||||||
this.enableOkButton();
|
this.enableOkButton();
|
||||||
|
|||||||
Reference in New Issue
Block a user