-
-
Notifications
You must be signed in to change notification settings - Fork 289
/
index.d.ts
816 lines (739 loc) · 21.3 KB
/
index.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
import { RequestType, RequestType0 } from 'vscode-languageserver-protocol';
import { ErrorHandler as LanguageClientErrorHandler, LanguageClient } from 'vscode-languageclient';
import { IConnection as LSIConnection, TextDocuments } from 'vscode-languageserver';
export declare namespace NodeJS {
interface ProcessEnv {
PRODUCT: 'ext' | 'ls' | 'ui';
NODE_ENV: 'development' | 'production';
IS_NODE_RUNTIME: string;
EXT_NAMESPACE: string;
AUTHOR: string;
DEBUG: string;
DEBUG_HIDE_DATE: string;
DISPLAY_NAME: string;
DSN_KEY: string;
EXT_CONFIG_NAMESPACE: string;
HOME: string;
USERPROFILE: string;
VERSION: string;
}
}
export type DatabaseDriver = string;
export interface IExpectedResult<T = any> extends String {
resultsIn?: T;
}
export interface QueryBuilder<P, R> {
(params?: P & { [k: string]: any }): IExpectedResult<R>;
raw?: string;
}
export interface IBaseQueries {
fetchRecords: QueryBuilder<{ limit: number; offset: number; table: NSDatabase.ITable; }, any>;
countRecords: QueryBuilder<{ table: NSDatabase.ITable; }, { total: number; }>;
fetchSchemas?: QueryBuilder<NSDatabase.IDatabase, NSDatabase.ISchema>;
fetchDatabases?: QueryBuilder<never, NSDatabase.IDatabase>;
fetchTables: QueryBuilder<NSDatabase.ISchema, NSDatabase.ITable>;
searchTables: QueryBuilder<{ search: string, limit?: number }, NSDatabase.ITable>;
searchColumns: QueryBuilder<{ search: string, tables: NSDatabase.ITable[], limit?: number }, NSDatabase.IColumn>;
// old api
describeTable: QueryBuilder<NSDatabase.ITable, any>;
fetchColumns: QueryBuilder<NSDatabase.ITable, NSDatabase.IColumn>;
fetchFunctions?: QueryBuilder<NSDatabase.ISchema, NSDatabase.IFunction>;
[id: string]: string | ((params: any) => (string | IExpectedResult));
}
export interface IConnection<DriverOptions = any> {
/**
* Connection name
* @type {string}
* @memberof IConnection
*/
name: string;
/**
* Connection group name
* @type {string}
* @memberof IConnection
*/
group?: string;
/**
* Server address
* @type {string}
* @default "127.0.0.1"
* @memberof IConnection
*/
server?: string;
/**
* Port for connection
* @type {number}
* @memberof IConnection
*/
port?: number;
/**
* Path of socket file to connect using UNIX sockets
* @type {string}
* @memberof IConnection
*/
socketPath?: string;
/**
* Database name
* @type {string}
* @memberof IConnection
*/
database?: string;
/**
* Database username
* @type {string}
* @memberof IConnection
*/
username: string;
/**
* Connection password. You can use option askForPassword to prompt password before connect
* @type {string}
* @default null
* @memberof IConnection
*/
password?: string;
/**
* Ask for password instead of set it in your settings
* @type {boolean}
* @default false
* @memberof IConnection
*/
askForPassword?: boolean;
/**
* Connection driver
* @type {DatabaseDriver}
* @memberof IConnection
*/
driver: DatabaseDriver;
/**
* Connection timeout in seconds
* @type {number}
* @default 30
* @memberof IConnection
*/
connectionTimeout?: number;
/**
* Connection show records limit
* @type {number}
* @default {50}
* @memberof IConnection
*/
previewLimit?: number;
/**
* Oracle specific driver options. See https://github.com/oracle/node-oracledb/blob/master/doc/api.md#createpoolpoolattrsconnectstring
* @type {string}
* @default null
* @memberof IConnection
*/
connectString?: string;
/**
* MSSQL specific driver options. See https://vscode-sqltools.mteixeira.dev/connections/mssql#1-1-specific-options
* @type {any}
* @memberof IConnection
*/
mssqlOptions?: { encrypt?: boolean };
/**
* MySQL specific driver options
* @type {any}
* @memberof IConnection
*/
mysqlOptions?: DriverOptions;
/**
* PostgreSQL/Redshift specific driver options. See https://vscode-sqltools.mteixeira.dev/connections/postgresql#1-1-specific-options
* @type {any}
* @memberof IConnection
*/
pgOptions?: DriverOptions;
/**
* OracleDB specific driver options (pool). See https://github.com/oracle/node-oracledb/blob/master/doc/api.md#createpoolpoolattrs
* @type {PoolAttributes}
* @memberof IConnection
*/
oracleOptions?: DriverOptions;
/**
* Cassandra specific driver options. See https://docs.datastax.com/en/developer/nodejs-driver/4.1/api/type.ClientOptions/
* @type {CQLClientOptions}
* @memberof IConnection
*/
cqlOptions?: DriverOptions;
/**
* Connection domain (for MSSQL/Azure only)
* @type {string}
* @memberof IConnection
*/
domain?: string;
/**
* Connection generated id. This is not a settings. It's generated in runtime
* @type {string}
* @memberof IConnection
*/
id: string;
/**
* Define an icon for this connection. If not specified, use defaults
*
* @type {string}
* @memberof IConnection
*/
icons?: {
active?: string;
connected?: string;
disconnected?: string;
};
// WONT BE INCLUDED IN SETTINGS
/**
* Connection flag. This is not a settings. It's generated in runtime
* @type {boolean}
* @memberof IConnection
*/
isConnected: boolean;
/**
* Connection flag. This is not a settings. It's generated in runtime
* @type {boolean}
* @memberof IConnection
*/
isActive: boolean;
}
export interface IQueryOptions {
requestId?: InternalID;
connId?: string;
[k: string]: any;
}
export interface IConnectionDriverConstructor {
new (credentials: IConnection<any>, getWorkspaceFolders?: LSIConnection['workspace']['getWorkspaceFolders']): IConnectionDriver;
}
export interface IConnectionDriver {
connection: any;
credentials: IConnection<any>;
open(): Promise<any>;
close(): Promise<any>;
checkDependencies?(): Promise<void>;
describeTable(table: NSDatabase.ITable, opt?: IQueryOptions): Promise<NSDatabase.IResult[]>;
showRecords(tableName: NSDatabase.ITable, opt: IQueryOptions & { limit: number, page?: number }): Promise<NSDatabase.IResult[]>;
query(query: string, opt?: IQueryOptions): Promise<NSDatabase.IResult[]>;
testConnection?(): Promise<void>;
getChildrenForItem?(params: { item: NSDatabase.SearchableItem, parent?: NSDatabase.SearchableItem }): Promise<MConnectionExplorer.IChildItem[]>;
searchItems?(itemType: ContextValue, search: string, extraParams: any): Promise<NSDatabase.SearchableItem[]>;
getStaticCompletions?(): Promise<{ [w: string]: NSDatabase.IStaticCompletion }>;
}
export declare enum ContextValue {
CONNECTION = 'connection',
CONNECTED_CONNECTION = 'connectedConnection',
COLUMN = 'connection.column',
FUNCTION = 'connection.function',
SCHEMA = 'connection.schema',
RESOURCE_GROUP = 'connection.resource_group',
DATABASE = 'connection.database',
TABLE = 'connection.table',
VIEW = 'connection.view',
MATERIALIZED_VIEW = 'connection.materializedView',
NO_CHILD = 'NO_CHILD',
KEYWORDS = 'KEYWORDS',
}
export module MConnectionExplorer {
export interface IChildItem {
type: ContextValue;
label: string;
schema: string;
database: string;
/**
* Text that goes in front of the label
*/
detail?: string;
/**
* Icon id from https://microsoft.github.io/vscode-codicons/dist/codicon.html
*/
iconId?: string;
/**
* sqltools icons
*/
iconName?: string;
/**
* for resource_groups
*/
childType?: ContextValue;
}
}
export type InternalID = string;
export namespace NSDatabase {
export interface IDatabase extends MConnectionExplorer.IChildItem {
type: ContextValue.DATABASE;
}
export interface ISchema extends MConnectionExplorer.IChildItem {
type: ContextValue.SCHEMA;
iconId: 'group-by-ref-type';
}
export interface ITable extends MConnectionExplorer.IChildItem {
type: ContextValue.TABLE;
isView: boolean;
}
export interface IColumn extends MConnectionExplorer.IChildItem {
type: ContextValue.COLUMN;
size?: number;
defaultValue?: string;
dataType: string;
isNullable: boolean;
isPartitionKey?: boolean;
isPk?: boolean;
isFk?: boolean;
columnKey?: string;
extra?: { [k: string]: any; };
table: ITable | string;
}
export interface IFunction extends MConnectionExplorer.IChildItem {
name: string;
schema: string;
database: string;
signature: string;
args: string[];
resultType: string;
/**
* This is used to build the connections explorer tree
*
* @type {string}
* @memberof IColumn
*/
tree?: string;
source?: string;
}
export interface IProcedure extends IFunction {}
export interface IStaticCompletion {
label: string;
filterText?: string;
sortText?: string;
detail: string;
documentation: { kind: 'markdown', value: string};
}
export interface IResult<T extends { [key: string]: any } = any> {
/**
* This id is unique for a single query result
*
* @type {InternalID}
* @memberof IResult
*/
resultId: InternalID;
/**
* This id represents a request to run one/multiple queries. It's used to group all queries in the same webview. Every request has it's own view
*
* @type {InternalID}
* @memberof IResult
*/
requestId: InternalID;
label?: string;
connId: string;
error?: boolean;
rawError?: Error;
results: (T extends { [key: string]: any } ? T : any)[];
cols: string[];
query: string;
baseQuery?: string; // used for extension generated queries
messages: (string | { message: string; date: Date })[];
page?: number;
total?: number;
pageSize?: number;
queryType?: 'showRecords' | 'describeTable';
queryParams?: { [k: string]: any };
}
export type SearchableItem = IDatabase | ISchema | ITable | IColumn | IFunction | IProcedure | MConnectionExplorer.IChildItem;
}
export interface INotifyErrorData {
notification: string; dontNotify?: boolean; args?: any
}
export interface ITelemetryArgs {
enableTelemetry?: boolean;
extraInfo?: {
uniqId?: string;
sessId?: string;
version?: string;
};
}
export abstract class ATelemetry {
public static enabled: Boolean;
public static extraInfo: ITelemetryArgs['extraInfo'];
abstract updateOpts(opts: ITelemetryArgs): void;
abstract enable(): void;
abstract disable(): void;
abstract registerException(error: Error, data?: { [key: string]: any }): void;
abstract registerMessage(
severity: 'info' | 'warn' | 'debug' | 'error' | 'critical' | 'fatal',
message: string,
value?: string,
): void;
abstract registerEvent(
name: string,
properties?: { [key: string]: any }
): void;
abstract registerTime(timeKey: string, timer: ITimer): void;
}
export interface ITimer {
elapsed(): number;
start(): void;
end(): void;
}
export type Arg0<T> = ArgsType<T>[0];
export type ArgsType<T> = T extends (...args: infer U) => any ? U : never;
export type RequestHandler<T> = T extends RequestType<infer P, infer R, any, any>
? (params: P) => R | Promise<R>
: (T extends RequestType0<infer R, any, any> ? () => R | Promise<R> : never);
export type CompletionLanguages = string[];
export type FormatLanguages = string[];
export type CodelensLanguages = string[];
export interface IDependencyManagerSettings {
/**
* Package mangaer name or path. Eg. yarn, npm or absolute paths like /usr/bin/npm
*
* @type {string}
* @default npm
* @memberof IDependencyManagerSettings
*/
packageManager: string;
/**
* Array of args passed when installing. If you use yarn, this shoud be set to `[\"add\"]`
*
* @type {string[]}
* @default ["install"]
* @memberof IDependencyManagerSettings
*/
installArgs: string[];
/**
* Array of args passed when runnning npm scripts.
*
* @type {string[]}
* @default ["run"]
* @memberof IDependencyManagerSettings
*/
runScriptArgs: string[];
/**
* Ignore confirmation requests to install or updagre dependencies.
*
* @type {boolean}
* @memberof IDependencyManagerSettings
*/
autoAccept: boolean;
}
export interface IFormatOptions {
/**
* Reserverd word case
* @type {string}
* @default null
* @memberof IFormatOptions
*/
reservedWordCase?: 'upper' | 'lower' | null;
/**
* Language of formating
* @type {string}
* @default 'sql'
* @memberof IFormatOptions
*/
language?: 'sql' | 'db2' | 'n1ql' | 'pl/sql';
/**
* Format line between queries
* @type {number | 'preserve'}
* @default 1
* @memberof IFormatOptions
*/
linesBetweenQueries?: number | 'preserve';
}
export interface IResultsOptions {
/**
* Global show records limit
* @type {number}
* @default 50
* @memberof IResultsOptions
*/
limit: number;
/**
* Define where the results should show up. Use the defined strings or any number defined in https://code.visualstudio.com/api/references/vscode-api#ViewColumn
* @type {string}
* @default 'next'
* @memberof IResultsOptions
*/
location?: 'current' | 'next' | 'end' | number;
/**
* Customize results screen CSS
*
* @type {{ [varible: string]: string }}
* @memberof IResultsOptions
*/
customization?: {
'font-family'?: string;
'font-size'?: string;
'table-cell-padding'?: string;
};
}
export interface ISettings {
/**
* Disable new release notifications.
* @default false
* @type {boolean}
* @memberof ISettings
*/
disableReleaseNotifications?: boolean;
/**
* Name of the connection to auto connect on start
* @type {string | string[]}
* @default null
* @memberof ISettings
*/
autoConnectTo?: string | string[];
/**
* Help SQLTools development.
* @type {boolean}
* @default true
* @memberof ISettings
*/
showStatusbar?: boolean;
/**
* Number of queries to keep on History.
* @type {number}
* @default 100
* @memberof ISettings
*/
historySize?: number;
/**
* Languages with SQL completion enabled.
* @type {CompletionLanguages}
* @default ["sql"]
* @memberof ISettings
* @see {@link https://code.visualstudio.com/docs/languages/identifiers} for more information.
*/
completionLanguages?: CompletionLanguages;
/**
* Languages with SQL formatting enabled.
* @type {FormatLanguages}
* @default ["sql"]
* @memberof ISettings
* @see {@link https://code.visualstudio.com/docs/languages/identifiers} for more information.
*/
formatLanguages?: FormatLanguages;
/**
* Languages with SQL CodeLens enabled.
* @type {CodelensLanguages}
* @default ["sql"]
* @memberof ISettings
* @see {@link https://code.visualstudio.com/docs/languages/identifiers} for more information.
*/
codelensLanguages?: CodelensLanguages;
/**
* Languages with SQL CodeLens enabled.
* @type {boolean}
* @default true
* @memberof ISettings
*/
highlightQuery?: boolean;
/**
* Format document/selection options
* @type {IFormatOptions}
* @memberof ISettings
*/
format?: IFormatOptions;
/**
* Results view options
* @type {IResultsOptions}
* @memberof ISettings
*/
results?: IResultsOptions;
/**
* Connections
* @type {IConnection[]}
* @default []
* @memberof ISettings
*/
connections?: IConnection[];
/**
* Table columns should be expanded on load?
*
* @type {boolean}
* @memberof ISettings
*/
tableTreeItemsExpanded?: boolean;
/**
* Default export results mode
* @default "prompt"
* @type {string}
* @memberof ISettings
*/
defaultExportType?: 'prompt' | 'csv' | 'json';
/**
* Enable node runtime usage.
* @default false
* @type {null | boolean | string}
* @memberof ISettings
*/
useNodeRuntime?: null | boolean | string;
/**
* Columns sort order
* @default 'name'
* @type {null | string}
* @memberof ISettings
*/
sortColumns?: 'name' | 'ordinalnumber' | null;
/**
* Flatten groups with has only one child
* @default false
* @type {boolean}
* @memberof ISettings
*/
flattenGroupsIfOne?: boolean;
/**
* Auto open session file when connect
* @default true
* @type {boolean}
* @memberof ISettings
*/
autoOpenSessionFiles?: boolean;
/**
* Folder for session files to be saved in
* @default ''
* @type {string}
* @memberof ISettings
*/
sessionFilesFolder?: string;
/**
* Set environment variables to be passed to language server. Eg: ORACLE_HOME, PATH...
* @default {}
* @type {{ [id: string]: string }}
* @memberof ISettings
*/
languageServerEnv?: { [id: string]: string };
/**
* Enables query parameter checking
* @default true
* @type {boolean}
*/
'queryParams.enableReplace'?: boolean;
/**
* RegEx used to identify query parameters
* @default "\\$[\\d]+|\\$\\[[\\d\\w]+\\]"
* @type {string}
*/
'queryParams.regex'?: string;
/**
* Dependency manager settings
*
* @type {IDependencyManagerSettings}
* @memberof ISettings
*/
dependencyManager?: IDependencyManagerSettings;
/**
* SQLTools debug settings
*
* @type {{ namespaces?: string }}
* @memberof ISettings
*/
debug?: { namespaces?: string };
'connectionExplorer.groupConnected'?: boolean;
}
export interface IConfig extends ISettings {
get: <K extends KeysOfSettings = KeysOfSettings, V = IConfig[K]>(configKey: K, defaultValue?: V | any) => V;
update: <K extends KeysOfSettings = KeysOfSettings, V = IConfig[K]>(configKey: KeysOfSettings, value: V) => Promise<void>;
addOnUpdateHook: (handler: OnUpdateConfigHandler) => void;
replaceAll: (newSettings: IConfig) => void;
}
export type OnUpdateConfigHandler = (data: { event?: ConfigChangeEvent; settings?: ISettings }) => any;
export type KeysOfSettings = (keyof ISettings);
export interface ConfigChangeEvent {
affectsConfig(section: KeysOfSettings, resource?: any): boolean;
/**
* VSCode config
*
* @param {string} section
* @param {any} [resource]
* @returns {boolean}
* @memberof ConfigChangeEvent
*/
affectsConfiguration(section: string, resource?: any): boolean;
}
export interface NodeDependency {
type: 'package' | 'npmscript';
name: string;
version?: string;
env?: { [id: string]: string };
args?: string[], // extra arguments to be passaged to packag managers
}
export interface ICommandEvent {
command: string;
args: any[];
}
export interface ICommandSuccessEvent<T = any> {
command: string;
args: any[];
result: T;
}
export type CommandEventHandler<T> = (evt: T) => void;
export interface IExtension {
client: ILanguageClient;
registerPlugin(plugin: IExtensionPlugin | IExtensionPlugin[]): this;
addBeforeCommandHook(command: string, handler: CommandEventHandler<ICommandEvent>): this;
addAfterCommandSuccessHook(command: string, handler: CommandEventHandler<ICommandSuccessEvent>): this;
registerCommand(command: string, handler: Function): this;
registerTextEditorCommand(command: string, handler: Function): this;
errorHandler(message: string, error: any): any;
resourcesMap(): Map<string, any>;
}
export interface IDriverExtensionApi {
/**
* Prepare connection settings that will be saved to settings file
*
* @param {{ connInfo: IConnection }} arg
* @returns {(Promise<IConnection> | IConnection)}
* @memberof IDriverExtensionApi
*/
parseBeforeSaveConnection?(arg: { connInfo: IConnection }): Promise<IConnection> | IConnection;
parseBeforeEditConnection?(arg: { connInfo: IConnection }): Promise<IConnection> | IConnection;
readonly driverName?: string;
readonly driverAliases: IDriverAlias[];
}
export interface IDriverAlias {
/**
* Driver name
*/
displayName: string;
/**
* Driver id
*/
value: string;
}
export interface IIcons {
default: string;
active?: string;
inactive: string;
}
export interface IExtensionPlugin<T = IExtension> {
readonly extensionId?: string;
readonly type?: 'plugin' | 'driver';
readonly name: string;
register: (extension: T) => void;
}
export interface ILanguageClient {
client: LanguageClient;
clientErrorHandler: LanguageClientErrorHandler;
start: LanguageClient['start'];
sendRequest: LanguageClient['sendRequest'];
onRequest: LanguageClient['onRequest'];
sendNotification: LanguageClient['sendNotification'];
onNotification: LanguageClient['onNotification'];
}
export type LSContextMap = Omit<Map<string, any>, 'clear' | 'delete'> & { drivers: Map<string, IConnectionDriverConstructor> };
export interface ILanguageServer {
listen(): void;
getContext(): LSContextMap;
registerPlugin(plugin: ILanguageServerPlugin | ILanguageServerPlugin[]): Promise<void>;
sendNotification: LSIConnection['sendNotification'];
onRequest: LSIConnection['onRequest'];
onNotification: LSIConnection['onNotification'];
onCompletion: LSIConnection['onCompletion'];
onCompletionResolve: LSIConnection['onCompletionResolve'];
onDocumentFormatting: LSIConnection['onDocumentFormatting'];
onDocumentRangeFormatting: LSIConnection['onDocumentRangeFormatting'];
sendRequest: LSIConnection['sendRequest'];
addOnDidChangeConfigurationHooks(hook: () => void): this;
addOnInitializeHook(hook: Arg0<LSIConnection['onInitialize']>): this;
addOnInitializedHook(hook: Arg0<LSIConnection['onInitialized']>): this;
notifyError(message: string, error?: any): any;
client: LSIConnection['client'];
server: LSIConnection;
docManager: TextDocuments<any>;
}
export interface ILanguageServerPlugin<T = ILanguageServer> {
register: (server: T) => void;
}
export { LSIConnection };