-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use remote file dialog for database and server properties dialogs #24390
Conversation
} | ||
|
||
export interface FileBrowserProvider extends DataProvider { | ||
openFileBrowser(ownerUri: string, expandPath: string, fileFilters: string[], changeFilter: boolean, showFoldersOnly?: boolean): Thenable<boolean>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you could add a doc comment for this (and then copy it over minus the new param to azdata.d.ts) that would be fantastic 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good once the STS & protocol changes are brought in
Currently we only use the local file system dialog for some of the database and server properties path & file fields, but many SQL instances are on other machines. This change adds the same remote file dialog used for Attach and Restore to the properties dialogs.
As part of this work I had to add a flag to the file browser to be able to only show folders, since some of the properties fields are only folders, like the default database file location for example. Anytime the file browser is opened in folder-only mode the file filters box gets hidden and the other controls expand to fill the space.
With file filter:
Without file filter:
I also added a small fix for handling undefined values in the Attach Database dialog that I was hitting during some testing.
Currently waiting on the related changes in STS and the dataprotocol-client to be checked in before merging this.
microsoft/sqlops-dataprotocolclient#95
microsoft/sqltoolsservice#2238