-
Notifications
You must be signed in to change notification settings - Fork 901
/
azdata.proposed.d.ts
2585 lines (2298 loc) · 67.6 KB
/
azdata.proposed.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// This is the place for API experiments and proposal.
import * as vscode from 'vscode';
declare module 'azdata' {
export namespace nb {
export interface NotebookDocument {
/**
* Sets the trust mode for the notebook document.
*/
setTrusted(state: boolean): void;
}
export interface ISessionOptions {
/**
* The spec for the kernel being used to create this session.
*/
kernelSpec?: IKernelSpec;
}
export interface IKernelSpec {
/**
* The list of languages that are supported for this kernel.
*/
supportedLanguages?: string[];
}
export interface IStandardKernel {
/**
* The list of languages that are supported for this kernel.
*/
supportedLanguages: string[];
readonly blockedOnSAW?: boolean;
}
export interface IKernelChangedArgs {
nbKernelAlias?: string
}
export interface ICellOutput {
/**
* Unique identifier for this cell output.
*/
id?: string;
}
export interface IExecuteResult {
data: any;
}
export interface IExecuteResultUpdate {
output_type: string;
resultSet: ResultSetSummary;
data: any;
}
export interface IExecuteRequest {
/**
* The language of the notebook document that is executing this request.
*/
language: string;
}
export interface INotebookMetadata {
connection_name?: string;
multi_connection_mode?: boolean;
}
export interface ICellMetadata {
connection_name?: string;
}
export interface ICellContents {
attachments?: ICellAttachments;
}
export type ICellAttachments = { [key: string]: ICellAttachment };
export type ICellAttachment = { [key: string]: string };
export interface SessionManager {
/**
* Shutdown all sessions.
*/
shutdownAll(): Thenable<void>;
/**
* Disposes the session manager.
*/
dispose(): void;
}
/**
* An event that is emitted when a {@link NotebookDocument} is closed.
*/
export const onDidCloseNotebookDocument: vscode.Event<NotebookDocument>;
export interface IKernel {
/**
* Restart a kernel.
*
* #### Notes
* Uses the [Jupyter Notebook API](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/notebook/4.x/notebook/services/api/api.yaml#!/kernels).
*
* The promise is fulfilled on a valid response and rejected otherwise.
*
* It is assumed that the API call does not mutate the kernel id or name.
*
* The promise will be rejected if the kernel status is `Dead` or if the
* request fails or the response is invalid.
*/
restart(): Thenable<void>;
}
}
export interface LoadingComponentBase {
/**
* When true, the component will display a loading spinner.
*/
loading?: boolean;
/**
* This sets the alert text which gets announced when the loading spinner is shown.
*/
loadingText?: string;
/**
* The text to display while loading is set to false. Will also be announced through screen readers
* once loading is completed.
*/
loadingCompletedText?: string;
}
/**
* The column information of a data set.
*/
export interface SimpleColumnInfo {
/**
* The column name.
*/
name: string;
/**
* The data type of the column.
*/
dataTypeName: string;
}
/**
* The parameters for start data serialization request.
*/
export interface SerializeDataStartRequestParams {
/**
* 'csv', 'json', 'excel', 'xml'
*/
saveFormat: string;
/**
* The path of the target file.
*/
filePath: string;
/**
* Whether the request is the last batch of the data set to be serialized.
*/
isLastBatch: boolean;
/**
* Data to be serialized.
*/
rows: DbCellValue[][];
/**
* The columns of the data set.
*/
columns: SimpleColumnInfo[];
/**
* Whether to include column headers to the target file.
*/
includeHeaders?: boolean;
/**
* The delimiter to seperate the cells.
*/
delimiter?: string;
/**
* The line seperator.
*/
lineSeperator?: string;
/**
* Character used for enclosing text fields when saving results as CSV.
*/
textIdentifier?: string;
/**
* File encoding used when saving results as CSV.
*/
encoding?: string;
/**
* When true, XML output will be formatted when saving results as XML.
*/
formatted?: boolean;
}
/**
* The parameters for continue data serialization request.
*/
export interface SerializeDataContinueRequestParams {
/**
* The path of the target file.
*/
filePath: string;
/**
* Whether the request is the last batch.
*/
isLastBatch: boolean;
/**
* Data to be serialized.
*/
rows: DbCellValue[][];
}
/**
* The result of data serialization data request.
*/
export interface SerializeDataResult {
/**
* The output message.
*/
messages?: string;
/**
* Whether the serialization is succeeded.
*/
succeeded: boolean;
}
/**
* The serialization provider.
*/
export interface SerializationProvider extends DataProvider {
/**
* Start the data serialization.
* @param requestParams the request parameters.
*/
startSerialization(requestParams: SerializeDataStartRequestParams): Thenable<SerializeDataResult>;
/**
* Continue the data serialization.
* @param requestParams the request parameters.
*/
continueSerialization(requestParams: SerializeDataContinueRequestParams): Thenable<SerializeDataResult>;
}
export namespace dataprotocol {
/**
* Registers a SerializationProvider.
* @param provider The data serialization provider.
*/
export function registerSerializationProvider(provider: SerializationProvider): vscode.Disposable;
export function registerSqlAssessmentServicesProvider(provider: SqlAssessmentServicesProvider): vscode.Disposable;
/**
* Registers a DataGridProvider which is used to provide lists of items to a data grid
* @param provider The provider implementation
*/
export function registerDataGridProvider(provider: DataGridProvider): vscode.Disposable;
}
export enum DataProviderType {
DataGridProvider = 'DataGridProvider'
}
/**
* The type of the DataGrid column
*/
export type DataGridColumnType = 'hyperlink' | 'text' | 'image';
/**
* A column in a data grid
*/
export interface DataGridColumn {
/**
* The text to display on the column heading.
*/
name: string;
/**
* The property name in the DataGridItem
*/
field: string;
/**
* A unique identifier for the column within the grid.
*/
id: string;
/**
* The type of column this is. This is used to determine how to render the contents.
*/
type: DataGridColumnType;
/**
* Whether this column is sortable.
*/
sortable?: boolean;
/**
* Whether this column is filterable
*/
filterable?: boolean;
/**
* If false, column can no longer be resized.
*/
resizable?: boolean;
/**
* If set to a non-empty string, a tooltip will appear on hover containing the string.
*/
tooltip?: string;
/**
* Width of the column in pixels.
*/
width?: number
}
/**
* Info for a command to execute
*/
export interface ExecuteCommandInfo {
/**
* The ID of the command to execute
*/
id: string;
/**
* The text to display for the action
*/
displayText?: string;
/**
* The optional args to pass to the command
*/
args?: any[];
}
/**
* Info for displaying a hyperlink value in a Data Grid table
*/
export interface DataGridHyperlinkInfo {
/**
* The text to display for the link
*/
displayText: string;
/**
* The URL to open or command to execute
*/
linkOrCommand: string | ExecuteCommandInfo;
}
/**
* An item for displaying in a data grid
*/
export interface DataGridItem {
/**
* A unique identifier for this item
*/
id: string;
/**
* The other properties that will be displayed in the grid columns
*/
[key: string]: string | DataGridHyperlinkInfo;
}
/**
* A data provider that provides lists of resource items for a data grid
*/
export interface DataGridProvider extends DataProvider {
/**
* Gets the list of data grid items for this provider
*/
getDataGridItems(): Thenable<DataGridItem[]>;
/**
* Gets the list of data grid columns for this provider
*/
getDataGridColumns(): Thenable<DataGridColumn[]>;
/**
* The user visible string to use for the title of the grid
*/
title: string;
}
export interface ConnectionProvider extends DataProvider {
/**
* Changes a user's password for the scenario of password expiration during SQL Authentication. (for Azure Data Studio use only)
*/
changePassword?(connectionUri: string, connectionInfo: ConnectionInfo, newPassword: string): Thenable<PasswordChangeResult>;
}
// Password Change Request ----------------------------------------------------------------------
export interface PasswordChangeResult {
/**
* Whether the password change was successful
*/
result: boolean;
/**
* Error message if the password change was unsuccessful
*/
errorMessage?: string;
}
export interface IConnectionProfile extends ConnectionInfo {
azureAccount?: string;
azureResourceId?: string;
azurePortalEndpoint?: string;
}
export interface PromptFailedResult extends ProviderError { }
export interface ProviderError {
/**
* Error name
*/
name?: string;
/**
* Error code
*/
errorCode?: string;
/**
* Error message
*/
errorMessage?: string;
}
export namespace diagnostics {
/**
* Represents a diagnostics provider of accounts.
*/
export interface ErrorDiagnosticsProviderMetadata {
/**
* The id of the provider (ex. a connection provider) that a diagnostics provider will handle errors for.
* Note: only ONE diagnostic provider per id/name at a time.
*/
targetProviderId: string;
}
export interface ConnectionDiagnosticsResult {
/**
* Whether the error was handled or not.
*/
handled: boolean,
/**
* Whether reconnect should be attempted.
*/
reconnect?: boolean,
/**
* If given, the new set of connection options to assign to the original connection profile, overwriting any previous options.
*/
options?: { [name: string]: any };
}
/**
* Provides error information
*/
export interface IErrorInformation {
/**
* Error code
*/
errorCode: number,
/**
* Error Message
*/
errorMessage: string,
/**
* Stack trace of error
*/
messageDetails: string
}
/**
* Diagnostics object for handling errors for a provider.
*/
export interface ErrorDiagnosticsProvider {
/**
* Called when a connection error occurs, allowing the provider to optionally handle the error and fix any issues before continuing with completing the connection.
* @param errorInfo The error information of the connection error.
* @param connection The connection profile that caused the error.
* @returns ConnectionDiagnosticsResult: The result from the provider for whether the error was handled.
*/
handleConnectionError(errorInfo: IErrorInformation, connection: connection.ConnectionProfile): Thenable<ConnectionDiagnosticsResult>;
}
/**
* Registers provider with instance of Diagnostic Provider implementation.
* Note: only ONE diagnostic provider object can be assigned to a specific provider at a time.
* @param providerMetadata Additional data used to register the provider
* @param errorDiagnostics The provider's diagnostic object that handles errors.
* @returns A disposable that when disposed will unregister the provider
*/
export function registerDiagnosticsProvider(providerMetadata: ErrorDiagnosticsProviderMetadata, errorDiagnostics: ErrorDiagnosticsProvider): vscode.Disposable;
}
export namespace connection {
/**
* Opens the change password dialog.
* @param profile The connection profile to change the password for.
* @returns The new password that is returned from the operation or undefined if unsuccessful.
*/
export function openChangePasswordDialog(profile: IConnectionProfile): Thenable<string | undefined>;
/**
* Gets the non default options of the connection profile.
* @param profile The connection profile to get the options for.
* @returns The string key containing the non default options (if any) for the profile.
*/
export function getNonDefaultOptions(profile: IConnectionProfile): Thenable<string>;
}
export interface ConnectionInfoSummary {
/**
* ID used to identify the connection on the server, if available.
*/
serverConnectionId?: string | undefined;
}
export interface QueryExecuteCompleteNotificationResult {
/**
* ID used to identify the connection used to run the query on the server, if available.
*/
serverConnectionId?: string | undefined;
}
/*
* Add optional per-OS default value.
*/
export interface DefaultValueOsOverride {
os: string;
defaultValueOverride: string;
}
export interface ConnectionOption {
defaultValueOsOverrides?: DefaultValueOsOverride[];
/**
* Used to define placeholder text
*/
placeholder?: string;
/**
* When set to true, the respective connection option will be rendered on the main connection dialog
* and not the Advanced Options window.
*/
showOnConnectionDialog?: boolean;
/**
* Used to define list of values based on which another option is rendered visible/hidden.
*/
onSelectionChange?: SelectionChangeEvent[];
}
export interface ServiceOption {
/**
* Used to define placeholder text
*/
placeholder?: string;
/**
* Used to define list of values based on which another option is rendered visible/hidden.
*/
onSelectionChange?: SelectionChangeEvent[];
}
/**
* This change event defines actions
*/
export interface SelectionChangeEvent {
/**
* Values that affect actions defined in this event.
*/
values: string[];
/**
* Action to be taken on another option when selected value matches to the list of values provided.
*/
dependentOptionActions: DependentOptionAction[];
}
export interface DependentOptionAction {
/**
* Name of option affected by defined action.
*/
optionName: string,
/**
* Action to be taken, Supported values: 'show', 'hide'.
*/
action: string;
/**
* Whether or not the option should be set to required when visible. Defaults to false.
* NOTE: Since this is dynamically defined, option values are not updated on 'show' and validation is not performed.
* When set to true, providers must handle property validation.
*/
required?: boolean;
}
// Object Explorer interfaces --------------------------------
export interface ObjectExplorerSession {
/**
* Authentication token for the current session.
*/
securityToken?: accounts.AccountSecurityToken | undefined;
}
export interface ExpandNodeInfo {
/**
* Authentication token for the current session.
*/
securityToken?: accounts.AccountSecurityToken | undefined;
/**
* Filters to apply to the child nodes being returned
*/
filters?: NodeFilter[];
}
// End Object Explorer interfaces ----------------------------
export interface TaskInfo {
targetLocation?: string;
}
export interface ButtonColumnOption {
icon?: IconPath;
}
export namespace sqlAssessment {
export enum SqlAssessmentTargetType {
Server = 1,
Database = 2
}
export enum SqlAssessmentResultItemKind {
RealResult = 0,
Warning = 1,
Error = 2
}
}
// Assessment interfaces
export interface SqlAssessmentResultItem {
rulesetVersion: string;
rulesetName: string;
targetType: sqlAssessment.SqlAssessmentTargetType;
targetName: string;
checkId: string;
tags: string[];
displayName: string;
description: string;
message: string;
helpLink: string;
level: string;
timestamp: string;
kind: sqlAssessment.SqlAssessmentResultItemKind;
}
export interface SqlAssessmentResult extends ResultStatus {
items: SqlAssessmentResultItem[];
apiVersion: string;
}
export interface SqlAssessmentServicesProvider extends DataProvider {
assessmentInvoke(ownerUri: string, targetType: sqlAssessment.SqlAssessmentTargetType): Promise<SqlAssessmentResult>;
getAssessmentItems(ownerUri: string, targetType: sqlAssessment.SqlAssessmentTargetType): Promise<SqlAssessmentResult>;
generateAssessmentScript(items: SqlAssessmentResultItem[]): Promise<ResultStatus>;
}
export interface TreeItem2 extends vscode.TreeItem {
payload?: IConnectionProfile;
childProvider?: string;
type?: ExtensionNodeType;
}
export interface Component extends vscode.Disposable { }
export namespace workspace {
/**
* Creates and enters a workspace at the specified location
*/
export function createAndEnterWorkspace(location: vscode.Uri, workspaceFile?: vscode.Uri): Promise<void>;
/**
* Enters the workspace with the provided path
* @param workspaceFile
*/
export function enterWorkspace(workspaceFile: vscode.Uri): Promise<void>;
/**
* Saves and enters the workspace with the provided path
* @param workspaceFile
*/
export function saveAndEnterWorkspace(workspaceFile: vscode.Uri): Promise<void>;
}
export interface TableComponentProperties {
/**
* Specifies whether to use headerFilter plugin
*/
headerFilter?: boolean,
}
export type ExecutionPlanData = executionPlan.ExecutionPlanGraphInfo | executionPlan.ExecutionPlanGraph[];
export interface ExecutionPlanComponentProperties extends ComponentProperties {
/**
* Provide the execution plan file to be displayed. In case of execution plan graph info, the file type will determine the provider to be used to generate execution plan graphs
*/
data?: ExecutionPlanData;
}
/**
* Defines the executionPlan component
*/
export interface ExecutionPlanComponent extends Component, ExecutionPlanComponentProperties {
}
export interface ModelBuilder {
executionPlan(): ComponentBuilder<ExecutionPlanComponent, ExecutionPlanComponentProperties>;
}
export interface ListViewOption {
/**
* The optional accessibility label for the column. Default is the label for the list view option.
*/
ariaLabel?: string;
/**
* Specify the icon for the option. The value could the path to the icon or and ADS icon defined in {@link SqlThemeIcon}.
*/
icon?: IconPath;
}
export interface IconColumnCellValue {
/**
* The icon to be displayed.
*/
icon: IconPath;
/**
* The title of the icon.
*/
title: string;
}
export interface ButtonColumnCellValue {
/**
* The icon to be displayed.
*/
icon?: IconPath;
/**
* The title of the button.
*/
title?: string;
}
export interface HyperlinkColumnCellValue {
/**
* The icon to be displayed.
*/
icon?: IconPath;
/**
* The title of the hyperlink.
*/
title?: string;
/**
* The url to open.
*/
url?: string;
/**
* The role of the hyperlink. By default, the role is 'link' and the url will be opened in a new tab.
*/
role?: 'button' | 'link';
}
export interface ContextMenuColumnCellValue {
/**
* The title of the hyperlink. By default, the title is 'Show Actions'
*/
title?: string;
/**
* commands for the menu. Use an array for a group and menu separators will be added.
*/
commands: (string | string[])[];
/**
* context that will be passed to the commands.
*/
context?: { [key: string]: string | boolean | number } | string | boolean | number | undefined
}
export enum ColumnType {
icon = 3,
hyperlink = 4,
contextMenu = 5
}
export interface TableColumn {
/**
* The text to display on the column heading. 'value' property will be used, if not specified
*/
name?: string;
/**
* whether the column is resizable. Default value is true.
*/
resizable?: boolean;
}
export interface IconColumnOptions {
/**
* The icon to use for all the cells in this column.
*/
icon?: IconPath;
}
export interface ButtonColumn extends IconColumnOptions, TableColumn {
/**
* Whether to show the text, default value is false.
*/
showText?: boolean;
}
export interface HyperlinkColumn extends IconColumnOptions, TableColumn {
}
export interface CheckboxColumn extends TableColumn {
action: ActionOnCellCheckboxCheck;
}
export interface ContextMenuColumn extends TableColumn {
}
export interface QueryExecuteResultSetNotificationParams {
/**
* Contains execution plans returned by the database in ResultSets.
*/
executionPlans: executionPlan.ExecutionPlanGraph[];
}
export interface ObjectMetadata {
/*
* Parent object name for subobjects such as triggers, indexes, etc.
*/
parentName?: string;
/*
* Parent object type name, such as Table, View, etc.
*/
parentTypeName?: string;
}
/**
* Represents a selected range in the result grid.
*/
export interface SelectionRange {
fromRow: number;
toRow: number;
fromColumn: number;
toColumn: number;
}
/**
* Parameters for the copy results request.
*/
export interface CopyResultsRequestParams {
/**
* URI of the editor.
*/
ownerUri: string;
/**
* Index of the batch.
*/
batchIndex: number;
/**
* Index of the result set.
*/
resultSetIndex: number;
/**
* Whether to include the column headers.
*/
includeHeaders: boolean
/**
* The selected ranges to be copied.
*/
selections: SelectionRange[];
}
export interface QueryProvider {
/**
* Notify clients that the URI for a connection has been changed.
*/
connectionUriChanged?(newUri: string, oldUri: string): Thenable<void>;
/**
* Copy the selected data to the clipboard.
* This is introduced to address the performance issue of large amount of data to ADS side.
* ADS will use this if 'supportCopyResultsToClipboard' property is set to true in the provider contribution point in extension's package.json.
* Otherwise, The default handler will load all the selected data to ADS and perform the copy operation.
*/
copyResults?(requestParams: CopyResultsRequestParams): Thenable<void>;
}
export enum DataProviderType {
TableDesignerProvider = 'TableDesignerProvider',
ExecutionPlanProvider = 'ExecutionPlanProvider',
ServerContextualizationProvider = 'ServerContextualizationProvider'
}
export namespace dataprotocol {
export function registerTableDesignerProvider(provider: designers.TableDesignerProvider): vscode.Disposable;
export function registerExecutionPlanProvider(provider: executionPlan.ExecutionPlanProvider): vscode.Disposable;
/**
* Registers a server contextualization provider, which can provide context about a server to extensions like GitHub
* Copilot for improved suggestions.
* @param provider The provider to register
*/
export function registerServerContextualizationProvider(provider: contextualization.ServerContextualizationProvider): vscode.Disposable;
}
export namespace designers {
/**
* Open a table designer window.
* @param providerId The table designer provider Id.
* @param tableInfo The table information. The object will be passed back to the table designer provider as the unique identifier for the table.
* @param telemetryInfo Optional Key-value pair containing any extra information that needs to be sent via telemetry
* @param objectExplorerContext Optional The context used to refresh Object Explorer after the table is created or edited
*/
export function openTableDesigner(providerId: string, tableInfo: TableInfo, telemetryInfo?: { [key: string]: string }, objectExplorerContext?: ObjectExplorerContext): Thenable<void>;
/**
* Definition for the table designer provider.
*/
export interface TableDesignerProvider extends DataProvider {
/**
* Initialize the table designer for the specified table.
* @param table the table information.
*/
initializeTableDesigner(table: TableInfo): Thenable<TableDesignerInfo>;
/**
* Process the table change.
* @param table the table information
* @param tableChangeInfo the information about the change user made through the UI.
*/
processTableEdit(table: TableInfo, tableChangeInfo: DesignerEdit): Thenable<DesignerEditResult<TableDesignerView>>;
/**
* Publish the changes.
* @param table the table information
*/
publishChanges(table: TableInfo): Thenable<PublishChangesResult>;
/**
* Generate script for the changes.
* @param table the table information
*/
generateScript(table: TableInfo): Thenable<string>;
/**
* Generate preview report describing the changes to be made.
* @param table the table information
*/
generatePreviewReport(table: TableInfo): Thenable<GeneratePreviewReportResult>;
/**
* Notify the provider that the table designer has been closed.
* @param table the table information
*/
disposeTableDesigner(table: TableInfo): Thenable<void>;
}
/**
* The information of the table.
*/
export interface TableInfo {
/**
* Used as the table designer editor's tab header text (as well as the base value of the tooltip).
*/
title: string;
/**
* Used as the table designer editor's tab header name text.
*/
tooltip: string;
/**
* Unique identifier of the table. Will be used to decide whether a designer is already opened for the table.
*/
id: string;
/**
* A boolean value indicates whether a new table is being designed.
*/
isNewTable: boolean;
/**