diff --git a/src/sql/workbench/services/fileBrowser/browser/fileBrowserDialog.ts b/src/sql/workbench/services/fileBrowser/browser/fileBrowserDialog.ts index 1d3164163971..b29d55a73b3f 100644 --- a/src/sql/workbench/services/fileBrowser/browser/fileBrowserDialog.ts +++ b/src/sql/workbench/services/fileBrowser/browser/fileBrowserDialog.ts @@ -114,6 +114,7 @@ export class FileBrowserDialog extends Modal { fileValidationServiceType: string, ): void { this._viewModel.initialize(ownerUri, expandPath, fileFilters, fileValidationServiceType); + this._viewModel.openFileBrowser(0, false).catch(err => onUnexpectedError(err)); this._fileFilterSelectBox.setOptions(this._viewModel.formattedFileFilters); this._fileFilterSelectBox.select(0); this._filePathInputBox.value = expandPath; @@ -125,7 +126,6 @@ export class FileBrowserDialog extends Modal { this._fileBrowserTreeView = this._instantiationService.createInstance(FileBrowserTreeView); this._fileBrowserTreeView.setOnClickedCallback((arg) => this.onClicked(arg)); this._fileBrowserTreeView.setOnDoubleClickedCallback((arg) => this.onDoubleClicked(arg)); - this._viewModel.openFileBrowser(0, false).catch(err => onUnexpectedError(err)); } /* enter key */