mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
Support Save As CSV/JSON/Excel/XML from Notebooks (#6627)
Updated existing serialization code so it actually supports serialization. Still needs work to replace the saveAs function when a QueryProvider doesn't support save as, but want to handle in separate PR. Removed separate MainThread/ExtHostSerializationProvider code as the DataProtocol code is the right place to put this code Plumbed support through the gridOutputComponent to use the new serialize method in the serialization provider Refactored the resultSerializer so majority of code can be shared between both implementations (for example file save dialog -> save -> show file on completion) * Update to latest SQLToolsService release
This commit is contained in:
14
src/sql/azdata.d.ts
vendored
14
src/sql/azdata.d.ts
vendored
@@ -74,13 +74,6 @@ declare module 'azdata' {
|
||||
export function getProvider(namespaceId: string): Thenable<CredentialProvider>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Namespace for serialization management global methods
|
||||
*/
|
||||
export namespace serialization {
|
||||
export function registerProvider(provider: SerializationProvider): vscode.Disposable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Namespace for connection management
|
||||
*/
|
||||
@@ -759,10 +752,6 @@ declare module 'azdata' {
|
||||
deleteCredential(credentialId: string): Thenable<boolean>;
|
||||
}
|
||||
|
||||
export interface SerializationProvider {
|
||||
handle: number;
|
||||
saveAs(saveFormat: string, savePath: string, results: string, appendToFile: boolean): Thenable<SaveResultRequestResult>;
|
||||
}
|
||||
|
||||
|
||||
export interface DidChangeLanguageFlavorParams {
|
||||
@@ -4123,7 +4112,8 @@ declare module 'azdata' {
|
||||
DacFxServicesProvider = 'DacFxServicesProvider',
|
||||
SchemaCompareServicesProvider = 'SchemaCompareServicesProvider',
|
||||
ObjectExplorerNodeProvider = 'ObjectExplorerNodeProvider',
|
||||
IconProvider = 'IconProvider'
|
||||
IconProvider = 'IconProvider',
|
||||
SerializationProvider = 'SerializationProvider'
|
||||
}
|
||||
|
||||
export namespace dataprotocol {
|
||||
|
||||
Reference in New Issue
Block a user