mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-15 02:48:30 -05:00
Add extension API for using the same file browser dialog that's used for Restore (#24151)
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
21
src/sql/azdata.proposed.d.ts
vendored
21
src/sql/azdata.proposed.d.ts
vendored
@@ -2011,6 +2011,27 @@ declare module 'azdata' {
|
||||
*/
|
||||
isPrimary: boolean;
|
||||
}
|
||||
|
||||
export interface FileFilters {
|
||||
/**
|
||||
* The label to display in the file filter field next to the list of filters.
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* The filters to limit what files are visible in the file browser (e.g. '*.sql' for SQL files).
|
||||
*/
|
||||
filters: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens a dialog to select a file path on the specified server's machine. Note: The dialog for just browsing local
|
||||
* files without any connection is opened via vscode.window.showOpenDialog.
|
||||
* @param connectionUri The URI of the connection to the target server
|
||||
* @param targetPath The file path on the server machine to open by default in the dialog
|
||||
* @param fileFilters The filters used to limit which files are displayed in the file browser
|
||||
* @returns The path of the file chosen from the dialog, and undefined if the dialog is closed without selecting anything.
|
||||
*/
|
||||
export function openServerFileBrowserDialog(connectionUri: string, targetPath: string, fileFilters: FileFilters[]): Thenable<string | undefined>;
|
||||
}
|
||||
|
||||
export interface TableComponent {
|
||||
|
||||
Reference in New Issue
Block a user