vscode-languageserver-protocol 3.15.0-next.5 → 3.15.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +6 -0
- package/lib/main.d.ts +31 -30
- package/lib/main.js +14 -21
- package/lib/protocol.callHierarchy.proposed.d.ts +10 -5
- package/lib/protocol.callHierarchy.proposed.js +1 -0
- package/lib/protocol.colorProvider.d.ts +19 -26
- package/lib/protocol.colorProvider.js +1 -0
- package/lib/protocol.configuration.d.ts +2 -1
- package/lib/protocol.d.ts +1051 -583
- package/lib/protocol.declaration.d.ts +20 -26
- package/lib/protocol.declaration.js +1 -0
- package/lib/protocol.foldingRange.d.ts +22 -34
- package/lib/protocol.foldingRange.js +1 -0
- package/lib/protocol.implementation.d.ts +22 -26
- package/lib/protocol.implementation.js +1 -0
- package/lib/protocol.js +139 -52
- package/lib/protocol.progress.proposed.d.ts +42 -43
- package/lib/protocol.progress.proposed.js +15 -27
- package/lib/protocol.selectionRange.d.ts +39 -0
- package/lib/{protocol.selectionRange.proposed.js → protocol.selectionRange.js} +1 -22
- package/lib/protocol.typeDefinition.d.ts +22 -26
- package/lib/protocol.typeDefinition.js +1 -0
- package/lib/utils/is.d.ts +1 -0
- package/lib/utils/is.js +7 -0
- package/package.json +5 -5
- package/vscode-languageserver-protocol.lsif +18295 -0
- package/lib/protocol.selectionRange.proposed.d.ts +0 -77
package/lib/protocol.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { RequestType, RequestType0, NotificationType, NotificationType0 } from 'vscode-jsonrpc';
|
|
2
|
-
import { TextDocumentContentChangeEvent, Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit,
|
|
3
|
-
import { ImplementationRequest, ImplementationClientCapabilities,
|
|
4
|
-
import { TypeDefinitionRequest, TypeDefinitionClientCapabilities,
|
|
1
|
+
import { RequestType, RequestType0, NotificationType, NotificationType0, ProgressToken, ProgressType } from 'vscode-jsonrpc';
|
|
2
|
+
import { TextDocumentContentChangeEvent, Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, TextDocumentSaveReason, CompletionItem, CompletionList, Hover, SignatureHelp, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag } from 'vscode-languageserver-types';
|
|
3
|
+
import { ImplementationRequest, ImplementationClientCapabilities, ImplementationOptions, ImplementationRegistrationOptions } from './protocol.implementation';
|
|
4
|
+
import { TypeDefinitionRequest, TypeDefinitionClientCapabilities, TypeDefinitionOptions, TypeDefinitionRegistrationOptions } from './protocol.typeDefinition';
|
|
5
5
|
import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams, WorkspaceFoldersClientCapabilities, WorkspaceFoldersServerCapabilities } from './protocol.workspaceFolders';
|
|
6
6
|
import { ConfigurationRequest, ConfigurationParams, ConfigurationItem, ConfigurationClientCapabilities } from './protocol.configuration';
|
|
7
|
-
import { DocumentColorRequest, ColorPresentationRequest,
|
|
8
|
-
import { FoldingRangeClientCapabilities,
|
|
9
|
-
import { DeclarationClientCapabilities, DeclarationRequest,
|
|
7
|
+
import { DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorClientCapabilities, DocumentColorRegistrationOptions } from './protocol.colorProvider';
|
|
8
|
+
import { FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions } from './protocol.foldingRange';
|
|
9
|
+
import { DeclarationClientCapabilities, DeclarationRequest, DeclarationOptions, DeclarationRegistrationOptions } from './protocol.declaration';
|
|
10
|
+
import { SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeRequest, SelectionRangeParams, SelectionRangeRegistrationOptions } from './protocol.selectionRange';
|
|
10
11
|
/**
|
|
11
12
|
* A document filter denotes a document by different properties like
|
|
12
13
|
* the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of
|
|
@@ -45,6 +46,10 @@ export declare type DocumentFilter = {
|
|
|
45
46
|
/** A glob pattern, like `*.{ts,js}`. */
|
|
46
47
|
pattern: string;
|
|
47
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* The DocumentFilter namespace provides helper functions to work with
|
|
51
|
+
* [DocumentFilter](#DocumentFilter) literals.
|
|
52
|
+
*/
|
|
48
53
|
export declare namespace DocumentFilter {
|
|
49
54
|
function is(value: any): value is DocumentFilter;
|
|
50
55
|
}
|
|
@@ -54,6 +59,13 @@ export declare namespace DocumentFilter {
|
|
|
54
59
|
* @sample `let sel:DocumentSelector = [{ language: 'typescript' }, { language: 'json', pattern: '**∕tsconfig.json' }]`;
|
|
55
60
|
*/
|
|
56
61
|
export declare type DocumentSelector = (string | DocumentFilter)[];
|
|
62
|
+
/**
|
|
63
|
+
* The DocumentSelector namespace provides helper functions to work with
|
|
64
|
+
* [DocumentSelector](#DocumentSelector)s.
|
|
65
|
+
*/
|
|
66
|
+
export declare namespace DocumentSelector {
|
|
67
|
+
function is(value: any[] | undefined | null): value is DocumentSelector;
|
|
68
|
+
}
|
|
57
69
|
/**
|
|
58
70
|
* General parameters to to register for an notification or to register a provider.
|
|
59
71
|
*/
|
|
@@ -106,6 +118,19 @@ export interface UnregistrationParams {
|
|
|
106
118
|
export declare namespace UnregistrationRequest {
|
|
107
119
|
const type: RequestType<UnregistrationParams, void, void, void>;
|
|
108
120
|
}
|
|
121
|
+
export interface WorkDoneProgressParams {
|
|
122
|
+
/**
|
|
123
|
+
* An optional token that a server can use to report work done progress.
|
|
124
|
+
*/
|
|
125
|
+
workDoneToken?: ProgressToken;
|
|
126
|
+
}
|
|
127
|
+
export interface PartialResultParams {
|
|
128
|
+
/**
|
|
129
|
+
* An optional token that a server can use to report partial results (e.g. streaming) to
|
|
130
|
+
* the client.
|
|
131
|
+
*/
|
|
132
|
+
partialResultToken?: ProgressToken;
|
|
133
|
+
}
|
|
109
134
|
/**
|
|
110
135
|
* A parameter literal used in requests to pass a text document and a position inside that
|
|
111
136
|
* document.
|
|
@@ -175,76 +200,23 @@ export interface WorkspaceClientCapabilities {
|
|
|
175
200
|
/**
|
|
176
201
|
* Capabilities specific to `WorkspaceEdit`s
|
|
177
202
|
*/
|
|
178
|
-
workspaceEdit?:
|
|
179
|
-
/**
|
|
180
|
-
* The client supports versioned document changes in `WorkspaceEdit`s
|
|
181
|
-
*/
|
|
182
|
-
documentChanges?: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* The resource operations the client supports. Clients should at least
|
|
185
|
-
* support 'create', 'rename' and 'delete' files and folders.
|
|
186
|
-
*/
|
|
187
|
-
resourceOperations?: ResourceOperationKind[];
|
|
188
|
-
/**
|
|
189
|
-
* The failure handling strategy of a client if applying the workspace edit
|
|
190
|
-
* failes.
|
|
191
|
-
*/
|
|
192
|
-
failureHandling?: FailureHandlingKind;
|
|
193
|
-
};
|
|
203
|
+
workspaceEdit?: WorkspaceEditClientCapabilities;
|
|
194
204
|
/**
|
|
195
205
|
* Capabilities specific to the `workspace/didChangeConfiguration` notification.
|
|
196
206
|
*/
|
|
197
|
-
didChangeConfiguration?:
|
|
198
|
-
/**
|
|
199
|
-
* Did change configuration notification supports dynamic registration.
|
|
200
|
-
*/
|
|
201
|
-
dynamicRegistration?: boolean;
|
|
202
|
-
};
|
|
207
|
+
didChangeConfiguration?: DidChangeConfigurationClientCapabilities;
|
|
203
208
|
/**
|
|
204
209
|
* Capabilities specific to the `workspace/didChangeWatchedFiles` notification.
|
|
205
210
|
*/
|
|
206
|
-
didChangeWatchedFiles?:
|
|
207
|
-
/**
|
|
208
|
-
* Did change watched files notification supports dynamic registration. Please note
|
|
209
|
-
* that the current protocol doesn't support static configuration for file changes
|
|
210
|
-
* from the server side.
|
|
211
|
-
*/
|
|
212
|
-
dynamicRegistration?: boolean;
|
|
213
|
-
};
|
|
211
|
+
didChangeWatchedFiles?: DidChangeWatchedFilesClientCapabilities;
|
|
214
212
|
/**
|
|
215
213
|
* Capabilities specific to the `workspace/symbol` request.
|
|
216
214
|
*/
|
|
217
|
-
symbol?:
|
|
218
|
-
/**
|
|
219
|
-
* Symbol request supports dynamic registration.
|
|
220
|
-
*/
|
|
221
|
-
dynamicRegistration?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Specific capabilities for the `SymbolKind` in the `workspace/symbol` request.
|
|
224
|
-
*/
|
|
225
|
-
symbolKind?: {
|
|
226
|
-
/**
|
|
227
|
-
* The symbol kind values the client supports. When this
|
|
228
|
-
* property exists the client also guarantees that it will
|
|
229
|
-
* handle values outside its set gracefully and falls back
|
|
230
|
-
* to a default value when unknown.
|
|
231
|
-
*
|
|
232
|
-
* If this property is not present the client only supports
|
|
233
|
-
* the symbol kinds from `File` to `Array` as defined in
|
|
234
|
-
* the initial version of the protocol.
|
|
235
|
-
*/
|
|
236
|
-
valueSet?: SymbolKind[];
|
|
237
|
-
};
|
|
238
|
-
};
|
|
215
|
+
symbol?: WorkspaceSymbolClientCapabilities;
|
|
239
216
|
/**
|
|
240
217
|
* Capabilities specific to the `workspace/executeCommand` request.
|
|
241
218
|
*/
|
|
242
|
-
executeCommand?:
|
|
243
|
-
/**
|
|
244
|
-
* Execute command supports dynamic registration.
|
|
245
|
-
*/
|
|
246
|
-
dynamicRegistration?: boolean;
|
|
247
|
-
};
|
|
219
|
+
executeCommand?: ExecuteCommandClientCapabilities;
|
|
248
220
|
}
|
|
249
221
|
/**
|
|
250
222
|
* Text document specific client capabilities.
|
|
@@ -253,298 +225,101 @@ export interface TextDocumentClientCapabilities {
|
|
|
253
225
|
/**
|
|
254
226
|
* Defines which synchronization capabilities the client supports.
|
|
255
227
|
*/
|
|
256
|
-
synchronization?:
|
|
257
|
-
/**
|
|
258
|
-
* Whether text document synchronization supports dynamic registration.
|
|
259
|
-
*/
|
|
260
|
-
dynamicRegistration?: boolean;
|
|
261
|
-
/**
|
|
262
|
-
* The client supports sending will save notifications.
|
|
263
|
-
*/
|
|
264
|
-
willSave?: boolean;
|
|
265
|
-
/**
|
|
266
|
-
* The client supports sending a will save request and
|
|
267
|
-
* waits for a response providing text edits which will
|
|
268
|
-
* be applied to the document before it is saved.
|
|
269
|
-
*/
|
|
270
|
-
willSaveWaitUntil?: boolean;
|
|
271
|
-
/**
|
|
272
|
-
* The client supports did save notifications.
|
|
273
|
-
*/
|
|
274
|
-
didSave?: boolean;
|
|
275
|
-
};
|
|
228
|
+
synchronization?: TextDocumentSyncClientCapabilities;
|
|
276
229
|
/**
|
|
277
230
|
* Capabilities specific to the `textDocument/completion`
|
|
278
231
|
*/
|
|
279
|
-
completion?:
|
|
280
|
-
/**
|
|
281
|
-
* Whether completion supports dynamic registration.
|
|
282
|
-
*/
|
|
283
|
-
dynamicRegistration?: boolean;
|
|
284
|
-
/**
|
|
285
|
-
* The client supports the following `CompletionItem` specific
|
|
286
|
-
* capabilities.
|
|
287
|
-
*/
|
|
288
|
-
completionItem?: {
|
|
289
|
-
/**
|
|
290
|
-
* Client supports snippets as insert text.
|
|
291
|
-
*
|
|
292
|
-
* A snippet can define tab stops and placeholders with `$1`, `$2`
|
|
293
|
-
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
|
|
294
|
-
* the end of the snippet. Placeholders with equal identifiers are linked,
|
|
295
|
-
* that is typing in one will update others too.
|
|
296
|
-
*/
|
|
297
|
-
snippetSupport?: boolean;
|
|
298
|
-
/**
|
|
299
|
-
* Client supports commit characters on a completion item.
|
|
300
|
-
*/
|
|
301
|
-
commitCharactersSupport?: boolean;
|
|
302
|
-
/**
|
|
303
|
-
* Client supports the follow content formats for the documentation
|
|
304
|
-
* property. The order describes the preferred format of the client.
|
|
305
|
-
*/
|
|
306
|
-
documentationFormat?: MarkupKind[];
|
|
307
|
-
/**
|
|
308
|
-
* Client supports the deprecated property on a completion item.
|
|
309
|
-
*/
|
|
310
|
-
deprecatedSupport?: boolean;
|
|
311
|
-
/**
|
|
312
|
-
* Client supports the preselect property on a completion item.
|
|
313
|
-
*/
|
|
314
|
-
preselectSupport?: boolean;
|
|
315
|
-
};
|
|
316
|
-
completionItemKind?: {
|
|
317
|
-
/**
|
|
318
|
-
* The completion item kind values the client supports. When this
|
|
319
|
-
* property exists the client also guarantees that it will
|
|
320
|
-
* handle values outside its set gracefully and falls back
|
|
321
|
-
* to a default value when unknown.
|
|
322
|
-
*
|
|
323
|
-
* If this property is not present the client only supports
|
|
324
|
-
* the completion items kinds from `Text` to `Reference` as defined in
|
|
325
|
-
* the initial version of the protocol.
|
|
326
|
-
*/
|
|
327
|
-
valueSet?: CompletionItemKind[];
|
|
328
|
-
};
|
|
329
|
-
/**
|
|
330
|
-
* The client supports to send additional context information for a
|
|
331
|
-
* `textDocument/completion` requestion.
|
|
332
|
-
*/
|
|
333
|
-
contextSupport?: boolean;
|
|
334
|
-
};
|
|
232
|
+
completion?: CompletionClientCapabilities;
|
|
335
233
|
/**
|
|
336
234
|
* Capabilities specific to the `textDocument/hover`
|
|
337
235
|
*/
|
|
338
|
-
hover?:
|
|
339
|
-
/**
|
|
340
|
-
* Whether hover supports dynamic registration.
|
|
341
|
-
*/
|
|
342
|
-
dynamicRegistration?: boolean;
|
|
343
|
-
/**
|
|
344
|
-
* Client supports the follow content formats for the content
|
|
345
|
-
* property. The order describes the preferred format of the client.
|
|
346
|
-
*/
|
|
347
|
-
contentFormat?: MarkupKind[];
|
|
348
|
-
};
|
|
236
|
+
hover?: HoverClientCapabilities;
|
|
349
237
|
/**
|
|
350
238
|
* Capabilities specific to the `textDocument/signatureHelp`
|
|
351
239
|
*/
|
|
352
|
-
signatureHelp?:
|
|
353
|
-
/**
|
|
354
|
-
* Whether signature help supports dynamic registration.
|
|
355
|
-
*/
|
|
356
|
-
dynamicRegistration?: boolean;
|
|
357
|
-
/**
|
|
358
|
-
* The client supports the following `SignatureInformation`
|
|
359
|
-
* specific properties.
|
|
360
|
-
*/
|
|
361
|
-
signatureInformation?: {
|
|
362
|
-
/**
|
|
363
|
-
* Client supports the follow content formats for the documentation
|
|
364
|
-
* property. The order describes the preferred format of the client.
|
|
365
|
-
*/
|
|
366
|
-
documentationFormat?: MarkupKind[];
|
|
367
|
-
/**
|
|
368
|
-
* Client capabilities specific to parameter information.
|
|
369
|
-
*/
|
|
370
|
-
parameterInformation?: {
|
|
371
|
-
/**
|
|
372
|
-
* The client supports processing label offsets instead of a
|
|
373
|
-
* simple label string.
|
|
374
|
-
*/
|
|
375
|
-
labelOffsetSupport?: boolean;
|
|
376
|
-
};
|
|
377
|
-
};
|
|
378
|
-
};
|
|
240
|
+
signatureHelp?: SignatureHelpClientCapabilities;
|
|
379
241
|
/**
|
|
380
|
-
* Capabilities specific to the `textDocument/
|
|
242
|
+
* Capabilities specific to the `textDocument/declaration`
|
|
243
|
+
*
|
|
244
|
+
* @since 3.14.0
|
|
381
245
|
*/
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Whether references supports dynamic registration.
|
|
385
|
-
*/
|
|
386
|
-
dynamicRegistration?: boolean;
|
|
387
|
-
};
|
|
246
|
+
declaration?: DeclarationClientCapabilities;
|
|
388
247
|
/**
|
|
389
|
-
* Capabilities specific to the `textDocument/
|
|
248
|
+
* Capabilities specific to the `textDocument/definition`
|
|
390
249
|
*/
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Whether document highlight supports dynamic registration.
|
|
394
|
-
*/
|
|
395
|
-
dynamicRegistration?: boolean;
|
|
396
|
-
};
|
|
250
|
+
definition?: DefinitionClientCapabilities;
|
|
397
251
|
/**
|
|
398
|
-
* Capabilities specific to the `textDocument/
|
|
252
|
+
* Capabilities specific to the `textDocument/typeDefinition`
|
|
253
|
+
*
|
|
254
|
+
* @since 3.6.0
|
|
399
255
|
*/
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Whether document symbol supports dynamic registration.
|
|
403
|
-
*/
|
|
404
|
-
dynamicRegistration?: boolean;
|
|
405
|
-
/**
|
|
406
|
-
* Specific capabilities for the `SymbolKind`.
|
|
407
|
-
*/
|
|
408
|
-
symbolKind?: {
|
|
409
|
-
/**
|
|
410
|
-
* The symbol kind values the client supports. When this
|
|
411
|
-
* property exists the client also guarantees that it will
|
|
412
|
-
* handle values outside its set gracefully and falls back
|
|
413
|
-
* to a default value when unknown.
|
|
414
|
-
*
|
|
415
|
-
* If this property is not present the client only supports
|
|
416
|
-
* the symbol kinds from `File` to `Array` as defined in
|
|
417
|
-
* the initial version of the protocol.
|
|
418
|
-
*/
|
|
419
|
-
valueSet?: SymbolKind[];
|
|
420
|
-
};
|
|
421
|
-
/**
|
|
422
|
-
* The client support hierarchical document symbols.
|
|
423
|
-
*/
|
|
424
|
-
hierarchicalDocumentSymbolSupport?: boolean;
|
|
425
|
-
};
|
|
256
|
+
typeDefinition?: TypeDefinitionClientCapabilities;
|
|
426
257
|
/**
|
|
427
|
-
* Capabilities specific to the `textDocument/
|
|
258
|
+
* Capabilities specific to the `textDocument/implementation`
|
|
259
|
+
*
|
|
260
|
+
* @since 3.6.0
|
|
428
261
|
*/
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Whether formatting supports dynamic registration.
|
|
432
|
-
*/
|
|
433
|
-
dynamicRegistration?: boolean;
|
|
434
|
-
};
|
|
262
|
+
implementation?: ImplementationClientCapabilities;
|
|
435
263
|
/**
|
|
436
|
-
* Capabilities specific to the `textDocument/
|
|
264
|
+
* Capabilities specific to the `textDocument/references`
|
|
437
265
|
*/
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Whether range formatting supports dynamic registration.
|
|
441
|
-
*/
|
|
442
|
-
dynamicRegistration?: boolean;
|
|
443
|
-
};
|
|
266
|
+
references?: ReferenceClientCapabilities;
|
|
444
267
|
/**
|
|
445
|
-
* Capabilities specific to the `textDocument/
|
|
268
|
+
* Capabilities specific to the `textDocument/documentHighlight`
|
|
446
269
|
*/
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Whether on type formatting supports dynamic registration.
|
|
450
|
-
*/
|
|
451
|
-
dynamicRegistration?: boolean;
|
|
452
|
-
};
|
|
270
|
+
documentHighlight?: DocumentHighlightClientCapabilities;
|
|
453
271
|
/**
|
|
454
|
-
* Capabilities specific to the `textDocument/
|
|
272
|
+
* Capabilities specific to the `textDocument/documentSymbol`
|
|
455
273
|
*/
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* Whether definition supports dynamic registration.
|
|
459
|
-
*/
|
|
460
|
-
dynamicRegistration?: boolean;
|
|
461
|
-
/**
|
|
462
|
-
* The client supports additional metadata in the form of definition links.
|
|
463
|
-
*/
|
|
464
|
-
linkSupport?: boolean;
|
|
465
|
-
};
|
|
274
|
+
documentSymbol?: DocumentSymbolClientCapabilities;
|
|
466
275
|
/**
|
|
467
276
|
* Capabilities specific to the `textDocument/codeAction`
|
|
468
277
|
*/
|
|
469
|
-
codeAction?:
|
|
470
|
-
/**
|
|
471
|
-
* Whether code action supports dynamic registration.
|
|
472
|
-
*/
|
|
473
|
-
dynamicRegistration?: boolean;
|
|
474
|
-
/**
|
|
475
|
-
* The client support code action literals as a valid
|
|
476
|
-
* response of the `textDocument/codeAction` request.
|
|
477
|
-
*/
|
|
478
|
-
codeActionLiteralSupport?: {
|
|
479
|
-
/**
|
|
480
|
-
* The code action kind is support with the following value
|
|
481
|
-
* set.
|
|
482
|
-
*/
|
|
483
|
-
codeActionKind: {
|
|
484
|
-
/**
|
|
485
|
-
* The code action kind values the client supports. When this
|
|
486
|
-
* property exists the client also guarantees that it will
|
|
487
|
-
* handle values outside its set gracefully and falls back
|
|
488
|
-
* to a default value when unknown.
|
|
489
|
-
*/
|
|
490
|
-
valueSet: CodeActionKind[];
|
|
491
|
-
};
|
|
492
|
-
};
|
|
493
|
-
};
|
|
278
|
+
codeAction?: CodeActionClientCapabilities;
|
|
494
279
|
/**
|
|
495
280
|
* Capabilities specific to the `textDocument/codeLens`
|
|
496
281
|
*/
|
|
497
|
-
codeLens?:
|
|
498
|
-
/**
|
|
499
|
-
* Whether code lens supports dynamic registration.
|
|
500
|
-
*/
|
|
501
|
-
dynamicRegistration?: boolean;
|
|
502
|
-
};
|
|
282
|
+
codeLens?: CodeLensClientCapabilities;
|
|
503
283
|
/**
|
|
504
284
|
* Capabilities specific to the `textDocument/documentLink`
|
|
505
285
|
*/
|
|
506
|
-
documentLink?:
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
286
|
+
documentLink?: DocumentLinkClientCapabilities;
|
|
287
|
+
/**
|
|
288
|
+
* Capabilities specific to the `textDocument/documentColor`
|
|
289
|
+
*/
|
|
290
|
+
colorProvider?: DocumentColorClientCapabilities;
|
|
291
|
+
/**
|
|
292
|
+
* Capabilities specific to the `textDocument/formatting`
|
|
293
|
+
*/
|
|
294
|
+
formatting?: DocumentFormattingClientCapabilities;
|
|
295
|
+
/**
|
|
296
|
+
* Capabilities specific to the `textDocument/rangeFormatting`
|
|
297
|
+
*/
|
|
298
|
+
rangeFormatting?: DocumentRangeFormattingClientCapabilities;
|
|
299
|
+
/**
|
|
300
|
+
* Capabilities specific to the `textDocument/onTypeFormatting`
|
|
301
|
+
*/
|
|
302
|
+
onTypeFormatting?: DocumentOnTypeFormattingClientCapabilities;
|
|
512
303
|
/**
|
|
513
304
|
* Capabilities specific to the `textDocument/rename`
|
|
514
305
|
*/
|
|
515
|
-
rename?:
|
|
516
|
-
/**
|
|
517
|
-
* Whether rename supports dynamic registration.
|
|
518
|
-
*/
|
|
519
|
-
dynamicRegistration?: boolean;
|
|
520
|
-
/**
|
|
521
|
-
* Client supports testing for validity of rename operations
|
|
522
|
-
* before execution.
|
|
523
|
-
*/
|
|
524
|
-
prepareSupport?: boolean;
|
|
525
|
-
};
|
|
306
|
+
rename?: RenameClientCapabilities;
|
|
526
307
|
/**
|
|
527
|
-
* Capabilities specific to `textDocument/
|
|
308
|
+
* Capabilities specific to `textDocument/foldingRange` requests.
|
|
309
|
+
*
|
|
310
|
+
* @since 3.10.0
|
|
528
311
|
*/
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
*/
|
|
537
|
-
tagSupport?: boolean;
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
/**
|
|
541
|
-
* Window specific client capabilities.
|
|
542
|
-
*/
|
|
543
|
-
export interface WindowClientCapabilities {
|
|
312
|
+
foldingRange?: FoldingRangeClientCapabilities;
|
|
313
|
+
/**
|
|
314
|
+
* Capabilities specific to `textDocument/selectionRange` requests
|
|
315
|
+
*
|
|
316
|
+
* @since 3.15.0
|
|
317
|
+
*/
|
|
318
|
+
selectionRange?: SelectionRangeClientCapabilities;
|
|
544
319
|
/**
|
|
545
|
-
*
|
|
320
|
+
* Capabilities specific to `textDocument/publishDiagnostics`.
|
|
546
321
|
*/
|
|
547
|
-
|
|
322
|
+
publishDiagnostics?: PublishDiagnosticsClientCapabilities;
|
|
548
323
|
}
|
|
549
324
|
/**
|
|
550
325
|
* Defines the capabilities provided by the client.
|
|
@@ -561,35 +336,13 @@ export interface _ClientCapabilities {
|
|
|
561
336
|
/**
|
|
562
337
|
* Window specific client capabilities.
|
|
563
338
|
*/
|
|
564
|
-
window?:
|
|
339
|
+
window?: object;
|
|
565
340
|
/**
|
|
566
341
|
* Experimental client capabilities.
|
|
567
342
|
*/
|
|
568
343
|
experimental?: any;
|
|
569
344
|
}
|
|
570
|
-
export declare type ClientCapabilities = _ClientCapabilities &
|
|
571
|
-
/**
|
|
572
|
-
* Defines how the host (editor) should sync
|
|
573
|
-
* document changes to the language server.
|
|
574
|
-
*/
|
|
575
|
-
export declare namespace TextDocumentSyncKind {
|
|
576
|
-
/**
|
|
577
|
-
* Documents should not be synced at all.
|
|
578
|
-
*/
|
|
579
|
-
const None = 0;
|
|
580
|
-
/**
|
|
581
|
-
* Documents are synced by always sending the full content
|
|
582
|
-
* of the document.
|
|
583
|
-
*/
|
|
584
|
-
const Full = 1;
|
|
585
|
-
/**
|
|
586
|
-
* Documents are synced by sending the full content on open.
|
|
587
|
-
* After that only incremental updates to the document are
|
|
588
|
-
* send.
|
|
589
|
-
*/
|
|
590
|
-
const Incremental = 2;
|
|
591
|
-
}
|
|
592
|
-
export declare type TextDocumentSyncKind = 0 | 1 | 2;
|
|
345
|
+
export declare type ClientCapabilities = _ClientCapabilities & WorkspaceFoldersClientCapabilities & ConfigurationClientCapabilities & SelectionRangeClientCapabilities;
|
|
593
346
|
/**
|
|
594
347
|
* Static registration options to be returned in the initialize
|
|
595
348
|
* request.
|
|
@@ -601,6 +354,15 @@ export interface StaticRegistrationOptions {
|
|
|
601
354
|
*/
|
|
602
355
|
id?: string;
|
|
603
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* The StaticRegistrationOptions namespace provides helper functions to work with
|
|
359
|
+
* [StaticRegistrationOptions](#StaticRegistrationOptions) literals.
|
|
360
|
+
*/
|
|
361
|
+
export declare namespace StaticRegistrationOptions {
|
|
362
|
+
function hasId(value: object): value is {
|
|
363
|
+
id: string;
|
|
364
|
+
};
|
|
365
|
+
}
|
|
604
366
|
/**
|
|
605
367
|
* General text document registration options.
|
|
606
368
|
*/
|
|
@@ -612,181 +374,84 @@ export interface TextDocumentRegistrationOptions {
|
|
|
612
374
|
documentSelector: DocumentSelector | null;
|
|
613
375
|
}
|
|
614
376
|
/**
|
|
615
|
-
*
|
|
377
|
+
* The TextDocumentRegistrationOptions namespace provides helper functions to work with
|
|
378
|
+
* [TextDocumentRegistrationOptions](#TextDocumentRegistrationOptions) literals.
|
|
616
379
|
*/
|
|
617
|
-
export
|
|
618
|
-
|
|
619
|
-
* Most tools trigger completion request automatically without explicitly requesting
|
|
620
|
-
* it using a keyboard shortcut (e.g. Ctrl+Space). Typically they do so when the user
|
|
621
|
-
* starts to type an identifier. For example if the user types `c` in a JavaScript file
|
|
622
|
-
* code complete will automatically pop up present `console` besides others as a
|
|
623
|
-
* completion item. Characters that make up identifiers don't need to be listed here.
|
|
624
|
-
*
|
|
625
|
-
* If code complete should automatically be trigger on characters not being valid inside
|
|
626
|
-
* an identifier (for example `.` in JavaScript) list them in `triggerCharacters`.
|
|
627
|
-
*/
|
|
628
|
-
triggerCharacters?: string[];
|
|
629
|
-
/**
|
|
630
|
-
* The list of all possible characters that commit a completion. This field can be used
|
|
631
|
-
* if clients don't support individual commmit characters per completion item. See
|
|
632
|
-
* `ClientCapabilities.textDocument.completion.completionItem.commitCharactersSupport`
|
|
633
|
-
*/
|
|
634
|
-
allCommitCharacters?: string[];
|
|
635
|
-
/**
|
|
636
|
-
* The server provides support to resolve additional
|
|
637
|
-
* information for a completion item.
|
|
638
|
-
*/
|
|
639
|
-
resolveProvider?: boolean;
|
|
380
|
+
export declare namespace TextDocumentRegistrationOptions {
|
|
381
|
+
function is(value: any): value is TextDocumentRegistrationOptions;
|
|
640
382
|
}
|
|
641
383
|
/**
|
|
642
|
-
*
|
|
384
|
+
* Save options.
|
|
643
385
|
*/
|
|
644
|
-
export interface
|
|
386
|
+
export interface SaveOptions {
|
|
645
387
|
/**
|
|
646
|
-
* The
|
|
647
|
-
* automatically.
|
|
388
|
+
* The client is supposed to include the content on save.
|
|
648
389
|
*/
|
|
649
|
-
|
|
390
|
+
includeText?: boolean;
|
|
650
391
|
}
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
*/
|
|
654
|
-
export interface CodeActionOptions {
|
|
655
|
-
/**
|
|
656
|
-
* CodeActionKinds that this server may return.
|
|
657
|
-
*
|
|
658
|
-
* The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server
|
|
659
|
-
* may list out every specific kind they provide.
|
|
660
|
-
*/
|
|
661
|
-
codeActionKinds?: CodeActionKind[];
|
|
392
|
+
export interface WorkDoneProgressOptions {
|
|
393
|
+
workDoneProgress?: boolean;
|
|
662
394
|
}
|
|
663
395
|
/**
|
|
664
|
-
*
|
|
396
|
+
* The WorkDoneProgressOptions namespace provides helper functions to work with
|
|
397
|
+
* [WorkDoneProgressOptions](#WorkDoneProgressOptions) literals.
|
|
665
398
|
*/
|
|
666
|
-
export
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
399
|
+
export declare namespace WorkDoneProgressOptions {
|
|
400
|
+
function is(value: any): value is WorkDoneProgressOptions;
|
|
401
|
+
function hasWorkDoneProgress(value: any): value is {
|
|
402
|
+
workDoneProgress: boolean;
|
|
403
|
+
};
|
|
671
404
|
}
|
|
672
405
|
/**
|
|
673
|
-
*
|
|
406
|
+
* Defines the capabilities provided by a language
|
|
407
|
+
* server.
|
|
674
408
|
*/
|
|
675
|
-
export interface
|
|
676
|
-
/**
|
|
677
|
-
* A character on which formatting should be triggered, like `}`.
|
|
678
|
-
*/
|
|
679
|
-
firstTriggerCharacter: string;
|
|
680
|
-
/**
|
|
681
|
-
* More trigger characters.
|
|
682
|
-
*/
|
|
683
|
-
moreTriggerCharacter?: string[];
|
|
684
|
-
}
|
|
685
|
-
/**
|
|
686
|
-
* Rename options
|
|
687
|
-
*/
|
|
688
|
-
export interface RenameOptions {
|
|
689
|
-
/**
|
|
690
|
-
* Renames should be checked and tested before being executed.
|
|
691
|
-
*/
|
|
692
|
-
prepareProvider?: boolean;
|
|
693
|
-
}
|
|
694
|
-
/**
|
|
695
|
-
* Document link options
|
|
696
|
-
*/
|
|
697
|
-
export interface DocumentLinkOptions {
|
|
698
|
-
/**
|
|
699
|
-
* Document links have a resolve provider as well.
|
|
700
|
-
*/
|
|
701
|
-
resolveProvider?: boolean;
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* Execute command options.
|
|
705
|
-
*/
|
|
706
|
-
export interface ExecuteCommandOptions {
|
|
707
|
-
/**
|
|
708
|
-
* The commands to be executed on the server
|
|
709
|
-
*/
|
|
710
|
-
commands: string[];
|
|
711
|
-
}
|
|
712
|
-
/**
|
|
713
|
-
* Save options.
|
|
714
|
-
*/
|
|
715
|
-
export interface SaveOptions {
|
|
716
|
-
/**
|
|
717
|
-
* The client is supposed to include the content on save.
|
|
718
|
-
*/
|
|
719
|
-
includeText?: boolean;
|
|
720
|
-
}
|
|
721
|
-
export interface TextDocumentSyncOptions {
|
|
722
|
-
/**
|
|
723
|
-
* Open and close notifications are sent to the server. If omitted open close notification should not
|
|
724
|
-
* be sent.
|
|
725
|
-
*/
|
|
726
|
-
openClose?: boolean;
|
|
727
|
-
/**
|
|
728
|
-
* Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
|
|
729
|
-
* and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
|
|
730
|
-
*/
|
|
731
|
-
change?: TextDocumentSyncKind;
|
|
732
|
-
/**
|
|
733
|
-
* If present will save notifications are sent to the server. If omitted the notification should not be
|
|
734
|
-
* sent.
|
|
735
|
-
*/
|
|
736
|
-
willSave?: boolean;
|
|
737
|
-
/**
|
|
738
|
-
* If present will save wait until requests are sent to the server. If omitted the request should not be
|
|
739
|
-
* sent.
|
|
740
|
-
*/
|
|
741
|
-
willSaveWaitUntil?: boolean;
|
|
742
|
-
/**
|
|
743
|
-
* If present save notifications are sent to the server. If omitted the notification should not be
|
|
744
|
-
* sent.
|
|
745
|
-
*/
|
|
746
|
-
save?: SaveOptions;
|
|
747
|
-
}
|
|
748
|
-
/**
|
|
749
|
-
* Defines the capabilities provided by a language
|
|
750
|
-
* server.
|
|
751
|
-
*/
|
|
752
|
-
export interface _ServerCapabilities<T = any> {
|
|
409
|
+
export interface _ServerCapabilities<T = any> {
|
|
753
410
|
/**
|
|
754
411
|
* Defines how text documents are synced. Is either a detailed structure defining each notification or
|
|
755
412
|
* for backwards compatibility the TextDocumentSyncKind number.
|
|
756
413
|
*/
|
|
757
414
|
textDocumentSync?: TextDocumentSyncOptions | TextDocumentSyncKind;
|
|
758
|
-
/**
|
|
759
|
-
* The server provides hover support.
|
|
760
|
-
*/
|
|
761
|
-
hoverProvider?: boolean;
|
|
762
415
|
/**
|
|
763
416
|
* The server provides completion support.
|
|
764
417
|
*/
|
|
765
418
|
completionProvider?: CompletionOptions;
|
|
419
|
+
/**
|
|
420
|
+
* The server provides hover support.
|
|
421
|
+
*/
|
|
422
|
+
hoverProvider?: boolean | HoverOptions;
|
|
766
423
|
/**
|
|
767
424
|
* The server provides signature help support.
|
|
768
425
|
*/
|
|
769
426
|
signatureHelpProvider?: SignatureHelpOptions;
|
|
427
|
+
/**
|
|
428
|
+
* The server provides Goto Declaration support.
|
|
429
|
+
*/
|
|
430
|
+
declarationProvider?: boolean | DeclarationOptions | DeclarationRegistrationOptions;
|
|
770
431
|
/**
|
|
771
432
|
* The server provides goto definition support.
|
|
772
433
|
*/
|
|
773
|
-
definitionProvider?: boolean;
|
|
434
|
+
definitionProvider?: boolean | DefinitionOptions;
|
|
435
|
+
/**
|
|
436
|
+
* The server provides Goto Type Definition support.
|
|
437
|
+
*/
|
|
438
|
+
typeDefinitionProvider?: boolean | TypeDefinitionOptions | TypeDefinitionRegistrationOptions;
|
|
439
|
+
/**
|
|
440
|
+
* The server provides Goto Implementation support.
|
|
441
|
+
*/
|
|
442
|
+
implementationProvider?: boolean | ImplementationOptions | ImplementationRegistrationOptions;
|
|
774
443
|
/**
|
|
775
444
|
* The server provides find references support.
|
|
776
445
|
*/
|
|
777
|
-
referencesProvider?: boolean;
|
|
446
|
+
referencesProvider?: boolean | ReferenceOptions;
|
|
778
447
|
/**
|
|
779
448
|
* The server provides document highlight support.
|
|
780
449
|
*/
|
|
781
|
-
documentHighlightProvider?: boolean;
|
|
450
|
+
documentHighlightProvider?: boolean | DocumentHighlightOptions;
|
|
782
451
|
/**
|
|
783
452
|
* The server provides document symbol support.
|
|
784
453
|
*/
|
|
785
|
-
documentSymbolProvider?: boolean;
|
|
786
|
-
/**
|
|
787
|
-
* The server provides workspace symbol support.
|
|
788
|
-
*/
|
|
789
|
-
workspaceSymbolProvider?: boolean;
|
|
454
|
+
documentSymbolProvider?: boolean | DocumentSymbolOptions;
|
|
790
455
|
/**
|
|
791
456
|
* The server provides code actions. CodeActionOptions may only be
|
|
792
457
|
* specified if the client states that it supports
|
|
@@ -797,27 +462,30 @@ export interface _ServerCapabilities<T = any> {
|
|
|
797
462
|
* The server provides code lens.
|
|
798
463
|
*/
|
|
799
464
|
codeLensProvider?: CodeLensOptions;
|
|
465
|
+
/**
|
|
466
|
+
* The server provides document link support.
|
|
467
|
+
*/
|
|
468
|
+
documentLinkProvider?: DocumentLinkOptions;
|
|
469
|
+
/**
|
|
470
|
+
* The server provides color provider support.
|
|
471
|
+
*/
|
|
472
|
+
colorProvider?: boolean | DocumentColorOptions | DocumentColorRegistrationOptions;
|
|
473
|
+
/**
|
|
474
|
+
* The server provides workspace symbol support.
|
|
475
|
+
*/
|
|
476
|
+
workspaceSymbolProvider?: boolean | WorkspaceSymbolOptions;
|
|
800
477
|
/**
|
|
801
478
|
* The server provides document formatting.
|
|
802
479
|
*/
|
|
803
|
-
documentFormattingProvider?: boolean;
|
|
480
|
+
documentFormattingProvider?: boolean | DocumentFormattingOptions;
|
|
804
481
|
/**
|
|
805
482
|
* The server provides document range formatting.
|
|
806
483
|
*/
|
|
807
|
-
documentRangeFormattingProvider?: boolean;
|
|
484
|
+
documentRangeFormattingProvider?: boolean | DocumentRangeFormattingOptions;
|
|
808
485
|
/**
|
|
809
486
|
* The server provides document formatting on typing.
|
|
810
487
|
*/
|
|
811
|
-
documentOnTypeFormattingProvider?:
|
|
812
|
-
/**
|
|
813
|
-
* A character on which formatting should be triggered, like `}`.
|
|
814
|
-
*/
|
|
815
|
-
firstTriggerCharacter: string;
|
|
816
|
-
/**
|
|
817
|
-
* More trigger characters.
|
|
818
|
-
*/
|
|
819
|
-
moreTriggerCharacter?: string[];
|
|
820
|
-
};
|
|
488
|
+
documentOnTypeFormattingProvider?: DocumentOnTypeFormattingOptions;
|
|
821
489
|
/**
|
|
822
490
|
* The server provides rename support. RenameOptions may only be
|
|
823
491
|
* specified if the client states that it supports
|
|
@@ -825,9 +493,13 @@ export interface _ServerCapabilities<T = any> {
|
|
|
825
493
|
*/
|
|
826
494
|
renameProvider?: boolean | RenameOptions;
|
|
827
495
|
/**
|
|
828
|
-
* The server provides
|
|
496
|
+
* The server provides folding provider support.
|
|
829
497
|
*/
|
|
830
|
-
|
|
498
|
+
foldingRangeProvider?: boolean | FoldingRangeOptions | FoldingRangeRegistrationOptions;
|
|
499
|
+
/**
|
|
500
|
+
* The server provides selection range support.
|
|
501
|
+
*/
|
|
502
|
+
selectionRangeProvider?: boolean | SelectionRangeOptions | SelectionRangeRegistrationOptions;
|
|
831
503
|
/**
|
|
832
504
|
* The server provides execute command support.
|
|
833
505
|
*/
|
|
@@ -837,7 +509,7 @@ export interface _ServerCapabilities<T = any> {
|
|
|
837
509
|
*/
|
|
838
510
|
experimental?: T;
|
|
839
511
|
}
|
|
840
|
-
export declare type ServerCapabilities<T = any> = _ServerCapabilities<T> &
|
|
512
|
+
export declare type ServerCapabilities<T = any> = _ServerCapabilities<T> & WorkspaceFoldersServerCapabilities;
|
|
841
513
|
/**
|
|
842
514
|
* The initialize request is sent from the client to the server.
|
|
843
515
|
* It is sent once as the request after starting up the server.
|
|
@@ -846,17 +518,32 @@ export declare type ServerCapabilities<T = any> = _ServerCapabilities<T> & Imple
|
|
|
846
518
|
* resolves to such.
|
|
847
519
|
*/
|
|
848
520
|
export declare namespace InitializeRequest {
|
|
849
|
-
const type: RequestType<
|
|
521
|
+
const type: RequestType<_InitializeParams & WorkspaceFoldersInitializeParams & WorkDoneProgressParams, InitializeResult<any>, InitializeError, void>;
|
|
850
522
|
}
|
|
851
523
|
/**
|
|
852
524
|
* The initialize parameters
|
|
853
525
|
*/
|
|
854
|
-
export interface _InitializeParams {
|
|
526
|
+
export interface _InitializeParams extends WorkDoneProgressParams {
|
|
855
527
|
/**
|
|
856
528
|
* The process Id of the parent process that started
|
|
857
529
|
* the server.
|
|
858
530
|
*/
|
|
859
531
|
processId: number | null;
|
|
532
|
+
/**
|
|
533
|
+
* Information about the client
|
|
534
|
+
*
|
|
535
|
+
* @since 3.15.0
|
|
536
|
+
*/
|
|
537
|
+
clientInfo?: {
|
|
538
|
+
/**
|
|
539
|
+
* The name of the client as defined by the client.
|
|
540
|
+
*/
|
|
541
|
+
name: string;
|
|
542
|
+
/**
|
|
543
|
+
* The client's version as defined by the client.
|
|
544
|
+
*/
|
|
545
|
+
version?: string;
|
|
546
|
+
};
|
|
860
547
|
/**
|
|
861
548
|
* The rootPath of the workspace. Is null
|
|
862
549
|
* if no folder is open.
|
|
@@ -871,7 +558,7 @@ export interface _InitializeParams {
|
|
|
871
558
|
*
|
|
872
559
|
* @deprecated in favour of workspaceFolders.
|
|
873
560
|
*/
|
|
874
|
-
rootUri:
|
|
561
|
+
rootUri: DocumentUri | null;
|
|
875
562
|
/**
|
|
876
563
|
* The capabilities provided by the client (editor or tool)
|
|
877
564
|
*/
|
|
@@ -894,6 +581,21 @@ export interface InitializeResult<T = any> {
|
|
|
894
581
|
* The capabilities the language server provides.
|
|
895
582
|
*/
|
|
896
583
|
capabilities: ServerCapabilities<T>;
|
|
584
|
+
/**
|
|
585
|
+
* Information about the server.
|
|
586
|
+
*
|
|
587
|
+
* @since 3.15.0
|
|
588
|
+
*/
|
|
589
|
+
serverInfo?: {
|
|
590
|
+
/**
|
|
591
|
+
* The name of the server as defined by the server.
|
|
592
|
+
*/
|
|
593
|
+
name: string;
|
|
594
|
+
/**
|
|
595
|
+
* The servers's version as defined by the server.
|
|
596
|
+
*/
|
|
597
|
+
version?: string;
|
|
598
|
+
};
|
|
897
599
|
/**
|
|
898
600
|
* Custom initialization results.
|
|
899
601
|
*/
|
|
@@ -949,6 +651,12 @@ export declare namespace ShutdownRequest {
|
|
|
949
651
|
export declare namespace ExitNotification {
|
|
950
652
|
const type: NotificationType0<void>;
|
|
951
653
|
}
|
|
654
|
+
export interface DidChangeConfigurationClientCapabilities {
|
|
655
|
+
/**
|
|
656
|
+
* Did change configuration notification supports dynamic registration.
|
|
657
|
+
*/
|
|
658
|
+
dynamicRegistration?: boolean;
|
|
659
|
+
}
|
|
952
660
|
/**
|
|
953
661
|
* The configuration change notification is sent from the client to the server
|
|
954
662
|
* when the client's configuration has changed. The notification contains
|
|
@@ -1065,6 +773,75 @@ export interface LogMessageParams {
|
|
|
1065
773
|
export declare namespace TelemetryEventNotification {
|
|
1066
774
|
const type: NotificationType<any, void>;
|
|
1067
775
|
}
|
|
776
|
+
export interface TextDocumentSyncClientCapabilities {
|
|
777
|
+
/**
|
|
778
|
+
* Whether text document synchronization supports dynamic registration.
|
|
779
|
+
*/
|
|
780
|
+
dynamicRegistration?: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* The client supports sending will save notifications.
|
|
783
|
+
*/
|
|
784
|
+
willSave?: boolean;
|
|
785
|
+
/**
|
|
786
|
+
* The client supports sending a will save request and
|
|
787
|
+
* waits for a response providing text edits which will
|
|
788
|
+
* be applied to the document before it is saved.
|
|
789
|
+
*/
|
|
790
|
+
willSaveWaitUntil?: boolean;
|
|
791
|
+
/**
|
|
792
|
+
* The client supports did save notifications.
|
|
793
|
+
*/
|
|
794
|
+
didSave?: boolean;
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Defines how the host (editor) should sync
|
|
798
|
+
* document changes to the language server.
|
|
799
|
+
*/
|
|
800
|
+
export declare namespace TextDocumentSyncKind {
|
|
801
|
+
/**
|
|
802
|
+
* Documents should not be synced at all.
|
|
803
|
+
*/
|
|
804
|
+
const None = 0;
|
|
805
|
+
/**
|
|
806
|
+
* Documents are synced by always sending the full content
|
|
807
|
+
* of the document.
|
|
808
|
+
*/
|
|
809
|
+
const Full = 1;
|
|
810
|
+
/**
|
|
811
|
+
* Documents are synced by sending the full content on open.
|
|
812
|
+
* After that only incremental updates to the document are
|
|
813
|
+
* send.
|
|
814
|
+
*/
|
|
815
|
+
const Incremental = 2;
|
|
816
|
+
}
|
|
817
|
+
export declare type TextDocumentSyncKind = 0 | 1 | 2;
|
|
818
|
+
export interface TextDocumentSyncOptions {
|
|
819
|
+
/**
|
|
820
|
+
* Open and close notifications are sent to the server. If omitted open close notification should not
|
|
821
|
+
* be sent.
|
|
822
|
+
*/
|
|
823
|
+
openClose?: boolean;
|
|
824
|
+
/**
|
|
825
|
+
* Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
|
|
826
|
+
* and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
|
|
827
|
+
*/
|
|
828
|
+
change?: TextDocumentSyncKind;
|
|
829
|
+
/**
|
|
830
|
+
* If present will save notifications are sent to the server. If omitted the notification should not be
|
|
831
|
+
* sent.
|
|
832
|
+
*/
|
|
833
|
+
willSave?: boolean;
|
|
834
|
+
/**
|
|
835
|
+
* If present will save wait until requests are sent to the server. If omitted the request should not be
|
|
836
|
+
* sent.
|
|
837
|
+
*/
|
|
838
|
+
willSaveWaitUntil?: boolean;
|
|
839
|
+
/**
|
|
840
|
+
* If present save notifications are sent to the server. If omitted the notification should not be
|
|
841
|
+
* sent.
|
|
842
|
+
*/
|
|
843
|
+
save?: SaveOptions;
|
|
844
|
+
}
|
|
1068
845
|
/**
|
|
1069
846
|
* The parameters send in a open text document notification
|
|
1070
847
|
*/
|
|
@@ -1198,6 +975,14 @@ export declare namespace WillSaveTextDocumentNotification {
|
|
|
1198
975
|
export declare namespace WillSaveTextDocumentWaitUntilRequest {
|
|
1199
976
|
const type: RequestType<WillSaveTextDocumentParams, TextEdit[] | null, void, TextDocumentRegistrationOptions>;
|
|
1200
977
|
}
|
|
978
|
+
export interface DidChangeWatchedFilesClientCapabilities {
|
|
979
|
+
/**
|
|
980
|
+
* Did change watched files notification supports dynamic registration. Please note
|
|
981
|
+
* that the current protocol doesn't support static configuration for file changes
|
|
982
|
+
* from the server side.
|
|
983
|
+
*/
|
|
984
|
+
dynamicRegistration?: boolean;
|
|
985
|
+
}
|
|
1201
986
|
/**
|
|
1202
987
|
* The watched files notification is sent from the client to the server when
|
|
1203
988
|
* the client detects changes to file watched by the language client.
|
|
@@ -1239,7 +1024,7 @@ export interface FileEvent {
|
|
|
1239
1024
|
/**
|
|
1240
1025
|
* The file's uri.
|
|
1241
1026
|
*/
|
|
1242
|
-
uri:
|
|
1027
|
+
uri: DocumentUri;
|
|
1243
1028
|
/**
|
|
1244
1029
|
* The change type.
|
|
1245
1030
|
*/
|
|
@@ -1287,11 +1072,25 @@ export declare namespace WatchKind {
|
|
|
1287
1072
|
const Delete = 4;
|
|
1288
1073
|
}
|
|
1289
1074
|
/**
|
|
1290
|
-
*
|
|
1291
|
-
* results of validation runs.
|
|
1075
|
+
* The publish diagnostic client capabilities.
|
|
1292
1076
|
*/
|
|
1293
|
-
export
|
|
1294
|
-
|
|
1077
|
+
export interface PublishDiagnosticsClientCapabilities {
|
|
1078
|
+
/**
|
|
1079
|
+
* Whether the clients accepts diagnostics with related information.
|
|
1080
|
+
*/
|
|
1081
|
+
relatedInformation?: boolean;
|
|
1082
|
+
/**
|
|
1083
|
+
* Client supports the tag property to provide meta data about a diagnostic.
|
|
1084
|
+
* Clients supporting tags have to handle unknown tags gracefully.
|
|
1085
|
+
*
|
|
1086
|
+
* @since 3.15.0
|
|
1087
|
+
*/
|
|
1088
|
+
tagSupport?: {
|
|
1089
|
+
/**
|
|
1090
|
+
* The tags supported by the client.
|
|
1091
|
+
*/
|
|
1092
|
+
valueSet: DiagnosticTag[];
|
|
1093
|
+
};
|
|
1295
1094
|
}
|
|
1296
1095
|
/**
|
|
1297
1096
|
* The publish diagnostic notification's parameters.
|
|
@@ -1300,9 +1099,11 @@ export interface PublishDiagnosticsParams {
|
|
|
1300
1099
|
/**
|
|
1301
1100
|
* The URI for which diagnostic information is reported.
|
|
1302
1101
|
*/
|
|
1303
|
-
uri:
|
|
1102
|
+
uri: DocumentUri;
|
|
1304
1103
|
/**
|
|
1305
1104
|
* Optional the version number of the document the diagnostics are published for.
|
|
1105
|
+
*
|
|
1106
|
+
* @since 3.15.0
|
|
1306
1107
|
*/
|
|
1307
1108
|
version?: number;
|
|
1308
1109
|
/**
|
|
@@ -1311,9 +1112,84 @@ export interface PublishDiagnosticsParams {
|
|
|
1311
1112
|
diagnostics: Diagnostic[];
|
|
1312
1113
|
}
|
|
1313
1114
|
/**
|
|
1314
|
-
*
|
|
1115
|
+
* Diagnostics notification are sent from the server to the client to signal
|
|
1116
|
+
* results of validation runs.
|
|
1315
1117
|
*/
|
|
1316
|
-
export
|
|
1118
|
+
export declare namespace PublishDiagnosticsNotification {
|
|
1119
|
+
const type: NotificationType<PublishDiagnosticsParams, void>;
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* Completion client capabilities
|
|
1123
|
+
*/
|
|
1124
|
+
export interface CompletionClientCapabilities {
|
|
1125
|
+
/**
|
|
1126
|
+
* Whether completion supports dynamic registration.
|
|
1127
|
+
*/
|
|
1128
|
+
dynamicRegistration?: boolean;
|
|
1129
|
+
/**
|
|
1130
|
+
* The client supports the following `CompletionItem` specific
|
|
1131
|
+
* capabilities.
|
|
1132
|
+
*/
|
|
1133
|
+
completionItem?: {
|
|
1134
|
+
/**
|
|
1135
|
+
* Client supports snippets as insert text.
|
|
1136
|
+
*
|
|
1137
|
+
* A snippet can define tab stops and placeholders with `$1`, `$2`
|
|
1138
|
+
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
|
|
1139
|
+
* the end of the snippet. Placeholders with equal identifiers are linked,
|
|
1140
|
+
* that is typing in one will update others too.
|
|
1141
|
+
*/
|
|
1142
|
+
snippetSupport?: boolean;
|
|
1143
|
+
/**
|
|
1144
|
+
* Client supports commit characters on a completion item.
|
|
1145
|
+
*/
|
|
1146
|
+
commitCharactersSupport?: boolean;
|
|
1147
|
+
/**
|
|
1148
|
+
* Client supports the follow content formats for the documentation
|
|
1149
|
+
* property. The order describes the preferred format of the client.
|
|
1150
|
+
*/
|
|
1151
|
+
documentationFormat?: MarkupKind[];
|
|
1152
|
+
/**
|
|
1153
|
+
* Client supports the deprecated property on a completion item.
|
|
1154
|
+
*/
|
|
1155
|
+
deprecatedSupport?: boolean;
|
|
1156
|
+
/**
|
|
1157
|
+
* Client supports the preselect property on a completion item.
|
|
1158
|
+
*/
|
|
1159
|
+
preselectSupport?: boolean;
|
|
1160
|
+
/**
|
|
1161
|
+
* Client supports the tag property on a completion item. Clients supporting
|
|
1162
|
+
* tags have to handle unknown tags gracefully. Clients especially need to
|
|
1163
|
+
* preserve unknown tags when sending a completion item back to the server in
|
|
1164
|
+
* a resolve call.
|
|
1165
|
+
*
|
|
1166
|
+
* @since 3.15.0
|
|
1167
|
+
*/
|
|
1168
|
+
tagSupport?: {
|
|
1169
|
+
/**
|
|
1170
|
+
* The tags supported by the client.
|
|
1171
|
+
*/
|
|
1172
|
+
valueSet: CompletionItemTag[];
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
completionItemKind?: {
|
|
1176
|
+
/**
|
|
1177
|
+
* The completion item kind values the client supports. When this
|
|
1178
|
+
* property exists the client also guarantees that it will
|
|
1179
|
+
* handle values outside its set gracefully and falls back
|
|
1180
|
+
* to a default value when unknown.
|
|
1181
|
+
*
|
|
1182
|
+
* If this property is not present the client only supports
|
|
1183
|
+
* the completion items kinds from `Text` to `Reference` as defined in
|
|
1184
|
+
* the initial version of the protocol.
|
|
1185
|
+
*/
|
|
1186
|
+
valueSet?: CompletionItemKind[];
|
|
1187
|
+
};
|
|
1188
|
+
/**
|
|
1189
|
+
* The client supports to send additional context information for a
|
|
1190
|
+
* `textDocument/completion` requestion.
|
|
1191
|
+
*/
|
|
1192
|
+
contextSupport?: boolean;
|
|
1317
1193
|
}
|
|
1318
1194
|
/**
|
|
1319
1195
|
* How a completion was triggered
|
|
@@ -1352,50 +1228,263 @@ export interface CompletionContext {
|
|
|
1352
1228
|
/**
|
|
1353
1229
|
* Completion parameters
|
|
1354
1230
|
*/
|
|
1355
|
-
export interface CompletionParams extends TextDocumentPositionParams {
|
|
1231
|
+
export interface CompletionParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
|
|
1356
1232
|
/**
|
|
1357
1233
|
* The completion context. This is only available it the client specifies
|
|
1358
|
-
* to send this using `
|
|
1234
|
+
* to send this using the client capability `textDocument.completion.contextSupport === true`
|
|
1359
1235
|
*/
|
|
1360
1236
|
context?: CompletionContext;
|
|
1361
1237
|
}
|
|
1362
1238
|
/**
|
|
1363
|
-
*
|
|
1364
|
-
* parameter is of type [TextDocumentPosition](#TextDocumentPosition) the response
|
|
1365
|
-
* is of type [CompletionItem[]](#CompletionItem) or [CompletionList](#CompletionList)
|
|
1366
|
-
* or a Thenable that resolves to such.
|
|
1367
|
-
*
|
|
1368
|
-
* The request can delay the computation of the [`detail`](#CompletionItem.detail)
|
|
1369
|
-
* and [`documentation`](#CompletionItem.documentation) properties to the `completionItem/resolve`
|
|
1370
|
-
* request. However, properties that are needed for the initial sorting and filtering, like `sortText`,
|
|
1371
|
-
* `filterText`, `insertText`, and `textEdit`, must not be changed during resolve.
|
|
1372
|
-
*/
|
|
1373
|
-
export declare namespace CompletionRequest {
|
|
1374
|
-
const type: RequestType<CompletionParams, CompletionList | CompletionItem[] | null, void, CompletionRegistrationOptions>;
|
|
1375
|
-
}
|
|
1376
|
-
/**
|
|
1377
|
-
* Request to resolve additional information for a given completion item.The request's
|
|
1378
|
-
* parameter is of type [CompletionItem](#CompletionItem) the response
|
|
1379
|
-
* is of type [CompletionItem](#CompletionItem) or a Thenable that resolves to such.
|
|
1239
|
+
* Completion options.
|
|
1380
1240
|
*/
|
|
1381
|
-
export
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1241
|
+
export interface CompletionOptions extends WorkDoneProgressOptions {
|
|
1242
|
+
/**
|
|
1243
|
+
* Most tools trigger completion request automatically without explicitly requesting
|
|
1244
|
+
* it using a keyboard shortcut (e.g. Ctrl+Space). Typically they do so when the user
|
|
1245
|
+
* starts to type an identifier. For example if the user types `c` in a JavaScript file
|
|
1246
|
+
* code complete will automatically pop up present `console` besides others as a
|
|
1247
|
+
* completion item. Characters that make up identifiers don't need to be listed here.
|
|
1248
|
+
*
|
|
1249
|
+
* If code complete should automatically be trigger on characters not being valid inside
|
|
1250
|
+
* an identifier (for example `.` in JavaScript) list them in `triggerCharacters`.
|
|
1251
|
+
*/
|
|
1252
|
+
triggerCharacters?: string[];
|
|
1253
|
+
/**
|
|
1254
|
+
* The list of all possible characters that commit a completion. This field can be used
|
|
1255
|
+
* if clients don't support individual commmit characters per completion item. See
|
|
1256
|
+
* `ClientCapabilities.textDocument.completion.completionItem.commitCharactersSupport`
|
|
1257
|
+
*
|
|
1258
|
+
* @since 3.2.0
|
|
1259
|
+
*/
|
|
1260
|
+
allCommitCharacters?: string[];
|
|
1261
|
+
/**
|
|
1262
|
+
* The server provides support to resolve additional
|
|
1263
|
+
* information for a completion item.
|
|
1264
|
+
*/
|
|
1265
|
+
resolveProvider?: boolean;
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Registration options for a [CompletionRequest](#CompletionRequest).
|
|
1269
|
+
*/
|
|
1270
|
+
export interface CompletionRegistrationOptions extends TextDocumentRegistrationOptions, CompletionOptions {
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Request to request completion at a given text document position. The request's
|
|
1274
|
+
* parameter is of type [TextDocumentPosition](#TextDocumentPosition) the response
|
|
1275
|
+
* is of type [CompletionItem[]](#CompletionItem) or [CompletionList](#CompletionList)
|
|
1276
|
+
* or a Thenable that resolves to such.
|
|
1277
|
+
*
|
|
1278
|
+
* The request can delay the computation of the [`detail`](#CompletionItem.detail)
|
|
1279
|
+
* and [`documentation`](#CompletionItem.documentation) properties to the `completionItem/resolve`
|
|
1280
|
+
* request. However, properties that are needed for the initial sorting and filtering, like `sortText`,
|
|
1281
|
+
* `filterText`, `insertText`, and `textEdit`, must not be changed during resolve.
|
|
1282
|
+
*/
|
|
1283
|
+
export declare namespace CompletionRequest {
|
|
1284
|
+
const type: RequestType<CompletionParams, CompletionList | CompletionItem[] | null, void, CompletionRegistrationOptions>;
|
|
1285
|
+
const resultType: ProgressType<CompletionItem[]>;
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Request to resolve additional information for a given completion item.The request's
|
|
1289
|
+
* parameter is of type [CompletionItem](#CompletionItem) the response
|
|
1290
|
+
* is of type [CompletionItem](#CompletionItem) or a Thenable that resolves to such.
|
|
1291
|
+
*/
|
|
1292
|
+
export declare namespace CompletionResolveRequest {
|
|
1293
|
+
const type: RequestType<CompletionItem, CompletionItem, void, void>;
|
|
1294
|
+
}
|
|
1295
|
+
export interface HoverClientCapabilities {
|
|
1296
|
+
/**
|
|
1297
|
+
* Whether hover supports dynamic registration.
|
|
1298
|
+
*/
|
|
1299
|
+
dynamicRegistration?: boolean;
|
|
1300
|
+
/**
|
|
1301
|
+
* Client supports the follow content formats for the content
|
|
1302
|
+
* property. The order describes the preferred format of the client.
|
|
1303
|
+
*/
|
|
1304
|
+
contentFormat?: MarkupKind[];
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* Hover options.
|
|
1308
|
+
*/
|
|
1309
|
+
export interface HoverOptions extends WorkDoneProgressOptions {
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* Parameters for a [HoverRequest](#HoverRequest).
|
|
1313
|
+
*/
|
|
1314
|
+
export interface HoverParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
1315
|
+
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Registration options for a [HoverRequest](#HoverRequest).
|
|
1318
|
+
*/
|
|
1319
|
+
export interface HoverRegistrationOptions extends TextDocumentRegistrationOptions, HoverOptions {
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* Request to request hover information at a given text document position. The request's
|
|
1323
|
+
* parameter is of type [TextDocumentPosition](#TextDocumentPosition) the response is of
|
|
1324
|
+
* type [Hover](#Hover) or a Thenable that resolves to such.
|
|
1388
1325
|
*/
|
|
1389
1326
|
export declare namespace HoverRequest {
|
|
1390
|
-
const type: RequestType<
|
|
1327
|
+
const type: RequestType<HoverParams, Hover | null, void, HoverRegistrationOptions>;
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Client Capabilities for a [SignatureHelpRequest](#SignatureHelpRequest).
|
|
1331
|
+
*/
|
|
1332
|
+
export interface SignatureHelpClientCapabilities {
|
|
1333
|
+
/**
|
|
1334
|
+
* Whether signature help supports dynamic registration.
|
|
1335
|
+
*/
|
|
1336
|
+
dynamicRegistration?: boolean;
|
|
1337
|
+
/**
|
|
1338
|
+
* The client supports the following `SignatureInformation`
|
|
1339
|
+
* specific properties.
|
|
1340
|
+
*/
|
|
1341
|
+
signatureInformation?: {
|
|
1342
|
+
/**
|
|
1343
|
+
* Client supports the follow content formats for the documentation
|
|
1344
|
+
* property. The order describes the preferred format of the client.
|
|
1345
|
+
*/
|
|
1346
|
+
documentationFormat?: MarkupKind[];
|
|
1347
|
+
/**
|
|
1348
|
+
* Client capabilities specific to parameter information.
|
|
1349
|
+
*/
|
|
1350
|
+
parameterInformation?: {
|
|
1351
|
+
/**
|
|
1352
|
+
* The client supports processing label offsets instead of a
|
|
1353
|
+
* simple label string.
|
|
1354
|
+
*
|
|
1355
|
+
* @since 3.14.0
|
|
1356
|
+
*/
|
|
1357
|
+
labelOffsetSupport?: boolean;
|
|
1358
|
+
};
|
|
1359
|
+
};
|
|
1360
|
+
/**
|
|
1361
|
+
* The client supports to send additional context information for a
|
|
1362
|
+
* `textDocument/signatureHelp` request. A client that opts into
|
|
1363
|
+
* contextSupport will also support the `retriggerCharacters` on
|
|
1364
|
+
* `SignatureHelpOptions`.
|
|
1365
|
+
*
|
|
1366
|
+
* @since 3.15.0
|
|
1367
|
+
*/
|
|
1368
|
+
contextSupport?: boolean;
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* Server Capabilities for a [SignatureHelpRequest](#SignatureHelpRequest).
|
|
1372
|
+
*/
|
|
1373
|
+
export interface SignatureHelpOptions extends WorkDoneProgressOptions {
|
|
1374
|
+
/**
|
|
1375
|
+
* List of characters that trigger signature help.
|
|
1376
|
+
*/
|
|
1377
|
+
triggerCharacters?: string[];
|
|
1378
|
+
/**
|
|
1379
|
+
* List of characters that re-trigger signature help.
|
|
1380
|
+
*
|
|
1381
|
+
* These trigger characters are only active when signature help is already showing. All trigger characters
|
|
1382
|
+
* are also counted as re-trigger characters.
|
|
1383
|
+
*
|
|
1384
|
+
* @since 3.15.0
|
|
1385
|
+
*/
|
|
1386
|
+
retriggerCharacters?: string[];
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* How a signature help was triggered.
|
|
1390
|
+
*
|
|
1391
|
+
* @since 3.15.0
|
|
1392
|
+
*/
|
|
1393
|
+
export declare namespace SignatureHelpTriggerKind {
|
|
1394
|
+
/**
|
|
1395
|
+
* Signature help was invoked manually by the user or by a command.
|
|
1396
|
+
*/
|
|
1397
|
+
const Invoked: 1;
|
|
1398
|
+
/**
|
|
1399
|
+
* Signature help was triggered by a trigger character.
|
|
1400
|
+
*/
|
|
1401
|
+
const TriggerCharacter: 2;
|
|
1402
|
+
/**
|
|
1403
|
+
* Signature help was triggered by the cursor moving or by the document content changing.
|
|
1404
|
+
*/
|
|
1405
|
+
const ContentChange: 3;
|
|
1406
|
+
}
|
|
1407
|
+
export declare type SignatureHelpTriggerKind = 1 | 2 | 3;
|
|
1408
|
+
/**
|
|
1409
|
+
* Additional information about the context in which a signature help request was triggered.
|
|
1410
|
+
*
|
|
1411
|
+
* @since 3.15.0
|
|
1412
|
+
*/
|
|
1413
|
+
export interface SignatureHelpContext {
|
|
1414
|
+
/**
|
|
1415
|
+
* Action that caused signature help to be triggered.
|
|
1416
|
+
*/
|
|
1417
|
+
triggerKind: SignatureHelpTriggerKind;
|
|
1418
|
+
/**
|
|
1419
|
+
* Character that caused signature help to be triggered.
|
|
1420
|
+
*
|
|
1421
|
+
* This is undefined when `triggerKind !== SignatureHelpTriggerKind.TriggerCharacter`
|
|
1422
|
+
*/
|
|
1423
|
+
triggerCharacter?: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* `true` if signature help was already showing when it was triggered.
|
|
1426
|
+
*
|
|
1427
|
+
* Retriggers occur when the signature help is already active and can be caused by actions such as
|
|
1428
|
+
* typing a trigger character, a cursor move, or document content changes.
|
|
1429
|
+
*/
|
|
1430
|
+
isRetrigger: boolean;
|
|
1431
|
+
/**
|
|
1432
|
+
* The currently active `SignatureHelp`.
|
|
1433
|
+
*
|
|
1434
|
+
* The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field updated based on
|
|
1435
|
+
* the user navigating through available signatures.
|
|
1436
|
+
*/
|
|
1437
|
+
activeSignatureHelp?: SignatureHelp;
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* Parameters for a [SignatureHelpRequest](#SignatureHelpRequest).
|
|
1441
|
+
*/
|
|
1442
|
+
export interface SignatureHelpParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
1443
|
+
/**
|
|
1444
|
+
* The signature help context. This is only available if the client specifies
|
|
1445
|
+
* to send this using the client capability `textDocument.signatureHelp.contextSupport === true`
|
|
1446
|
+
*
|
|
1447
|
+
* @since 3.15.0
|
|
1448
|
+
*/
|
|
1449
|
+
context?: SignatureHelpContext;
|
|
1391
1450
|
}
|
|
1392
1451
|
/**
|
|
1393
|
-
*
|
|
1452
|
+
* Registration options for a [SignatureHelpRequest](#SignatureHelpRequest).
|
|
1394
1453
|
*/
|
|
1395
1454
|
export interface SignatureHelpRegistrationOptions extends TextDocumentRegistrationOptions, SignatureHelpOptions {
|
|
1396
1455
|
}
|
|
1397
1456
|
export declare namespace SignatureHelpRequest {
|
|
1398
|
-
const type: RequestType<
|
|
1457
|
+
const type: RequestType<SignatureHelpParams, SignatureHelp | null, void, SignatureHelpRegistrationOptions>;
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Client Capabilities for a [DefinitionRequest](#DefinitionRequest).
|
|
1461
|
+
*/
|
|
1462
|
+
export interface DefinitionClientCapabilities {
|
|
1463
|
+
/**
|
|
1464
|
+
* Whether definition supports dynamic registration.
|
|
1465
|
+
*/
|
|
1466
|
+
dynamicRegistration?: boolean;
|
|
1467
|
+
/**
|
|
1468
|
+
* The client supports additional metadata in the form of definition links.
|
|
1469
|
+
*
|
|
1470
|
+
* @since 3.14.0
|
|
1471
|
+
*/
|
|
1472
|
+
linkSupport?: boolean;
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Server Capabilities for a [DefinitionRequest](#DefinitionRequest).
|
|
1476
|
+
*/
|
|
1477
|
+
export interface DefinitionOptions extends WorkDoneProgressOptions {
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Parameters for a [DefinitionRequest](#DefinitionRequest).
|
|
1481
|
+
*/
|
|
1482
|
+
export interface DefinitionParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Registration options for a [DefinitionRequest](#DefinitionRequest).
|
|
1486
|
+
*/
|
|
1487
|
+
export interface DefinitionRegistrationOptions extends TextDocumentRegistrationOptions, DefinitionOptions {
|
|
1399
1488
|
}
|
|
1400
1489
|
/**
|
|
1401
1490
|
* A request to resolve the definition location of a symbol at a given text
|
|
@@ -1405,14 +1494,34 @@ export declare namespace SignatureHelpRequest {
|
|
|
1405
1494
|
* to such.
|
|
1406
1495
|
*/
|
|
1407
1496
|
export declare namespace DefinitionRequest {
|
|
1408
|
-
const type: RequestType<
|
|
1497
|
+
const type: RequestType<DefinitionParams, Location | Location[] | LocationLink[] | null, void, DefinitionRegistrationOptions>;
|
|
1498
|
+
const resultType: ProgressType<Location[] | LocationLink[]>;
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Client Capabilities for a [ReferencesRequest](#ReferencesRequest).
|
|
1502
|
+
*/
|
|
1503
|
+
export interface ReferenceClientCapabilities {
|
|
1504
|
+
/**
|
|
1505
|
+
* Whether references supports dynamic registration.
|
|
1506
|
+
*/
|
|
1507
|
+
dynamicRegistration?: boolean;
|
|
1409
1508
|
}
|
|
1410
1509
|
/**
|
|
1411
1510
|
* Parameters for a [ReferencesRequest](#ReferencesRequest).
|
|
1412
1511
|
*/
|
|
1413
|
-
export interface ReferenceParams extends TextDocumentPositionParams {
|
|
1512
|
+
export interface ReferenceParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
|
|
1414
1513
|
context: ReferenceContext;
|
|
1415
1514
|
}
|
|
1515
|
+
/**
|
|
1516
|
+
* Reference options.
|
|
1517
|
+
*/
|
|
1518
|
+
export interface ReferenceOptions extends WorkDoneProgressOptions {
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Registration options for a [ReferencesRequest](#ReferencesRequest).
|
|
1522
|
+
*/
|
|
1523
|
+
export interface ReferenceRegistrationOptions extends TextDocumentRegistrationOptions, ReferenceOptions {
|
|
1524
|
+
}
|
|
1416
1525
|
/**
|
|
1417
1526
|
* A request to resolve project-wide references for the symbol denoted
|
|
1418
1527
|
* by the given text document position. The request's parameter is of
|
|
@@ -1420,7 +1529,32 @@ export interface ReferenceParams extends TextDocumentPositionParams {
|
|
|
1420
1529
|
* [Location[]](#Location) or a Thenable that resolves to such.
|
|
1421
1530
|
*/
|
|
1422
1531
|
export declare namespace ReferencesRequest {
|
|
1423
|
-
const type: RequestType<ReferenceParams, Location[] | null, void,
|
|
1532
|
+
const type: RequestType<ReferenceParams, Location[] | null, void, ReferenceRegistrationOptions>;
|
|
1533
|
+
const resultType: ProgressType<Location[]>;
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Client Capabilities for a [DocumentHighlightRequest](#DocumentHighlightRequest).
|
|
1537
|
+
*/
|
|
1538
|
+
export interface DocumentHighlightClientCapabilities {
|
|
1539
|
+
/**
|
|
1540
|
+
* Whether document highlight supports dynamic registration.
|
|
1541
|
+
*/
|
|
1542
|
+
dynamicRegistration?: boolean;
|
|
1543
|
+
}
|
|
1544
|
+
/**
|
|
1545
|
+
* Parameters for a [DocumentHighlightRequest](#DocumentHighlightRequest).
|
|
1546
|
+
*/
|
|
1547
|
+
export interface DocumentHighlightParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
|
|
1548
|
+
}
|
|
1549
|
+
/**
|
|
1550
|
+
* Provider options for a [DocumentHighlightRequest](#DocumentHighlightRequest).
|
|
1551
|
+
*/
|
|
1552
|
+
export interface DocumentHighlightOptions extends WorkDoneProgressOptions {
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Registration options for a [DocumentHighlightRequest](#DocumentHighlightRequest).
|
|
1556
|
+
*/
|
|
1557
|
+
export interface DocumentHighlightRegistrationOptions extends TextDocumentRegistrationOptions, DocumentHighlightOptions {
|
|
1424
1558
|
}
|
|
1425
1559
|
/**
|
|
1426
1560
|
* Request to resolve a [DocumentHighlight](#DocumentHighlight) for a given
|
|
@@ -1429,7 +1563,56 @@ export declare namespace ReferencesRequest {
|
|
|
1429
1563
|
* (#DocumentHighlight) or a Thenable that resolves to such.
|
|
1430
1564
|
*/
|
|
1431
1565
|
export declare namespace DocumentHighlightRequest {
|
|
1432
|
-
const type: RequestType<
|
|
1566
|
+
const type: RequestType<DocumentHighlightParams, DocumentHighlight[] | null, void, DocumentHighlightRegistrationOptions>;
|
|
1567
|
+
const resultType: ProgressType<DocumentHighlight[]>;
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Client Capabilities for a [DocumentSymbolRequest](#DocumentSymbolRequest).
|
|
1571
|
+
*/
|
|
1572
|
+
export interface DocumentSymbolClientCapabilities {
|
|
1573
|
+
/**
|
|
1574
|
+
* Whether document symbol supports dynamic registration.
|
|
1575
|
+
*/
|
|
1576
|
+
dynamicRegistration?: boolean;
|
|
1577
|
+
/**
|
|
1578
|
+
* Specific capabilities for the `SymbolKind`.
|
|
1579
|
+
*/
|
|
1580
|
+
symbolKind?: {
|
|
1581
|
+
/**
|
|
1582
|
+
* The symbol kind values the client supports. When this
|
|
1583
|
+
* property exists the client also guarantees that it will
|
|
1584
|
+
* handle values outside its set gracefully and falls back
|
|
1585
|
+
* to a default value when unknown.
|
|
1586
|
+
*
|
|
1587
|
+
* If this property is not present the client only supports
|
|
1588
|
+
* the symbol kinds from `File` to `Array` as defined in
|
|
1589
|
+
* the initial version of the protocol.
|
|
1590
|
+
*/
|
|
1591
|
+
valueSet?: SymbolKind[];
|
|
1592
|
+
};
|
|
1593
|
+
/**
|
|
1594
|
+
* The client support hierarchical document symbols.
|
|
1595
|
+
*/
|
|
1596
|
+
hierarchicalDocumentSymbolSupport?: boolean;
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Parameters for a [DocumentSymbolRequest](#DocumentSymbolRequest).
|
|
1600
|
+
*/
|
|
1601
|
+
export interface DocumentSymbolParams extends WorkDoneProgressParams, PartialResultParams {
|
|
1602
|
+
/**
|
|
1603
|
+
* The text document.
|
|
1604
|
+
*/
|
|
1605
|
+
textDocument: TextDocumentIdentifier;
|
|
1606
|
+
}
|
|
1607
|
+
/**
|
|
1608
|
+
* Provider options for a [DocumentSymbolRequest](#DocumentSymbolRequest).
|
|
1609
|
+
*/
|
|
1610
|
+
export interface DocumentSymbolOptions extends WorkDoneProgressOptions {
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* Registration options for a [DocumentSymbolRequest](#DocumentSymbolRequest).
|
|
1614
|
+
*/
|
|
1615
|
+
export interface DocumentSymbolRegistrationOptions extends TextDocumentRegistrationOptions, DocumentSymbolOptions {
|
|
1433
1616
|
}
|
|
1434
1617
|
/**
|
|
1435
1618
|
* A request to list all symbols found in a given text document. The request's
|
|
@@ -1438,21 +1621,48 @@ export declare namespace DocumentHighlightRequest {
|
|
|
1438
1621
|
* that resolves to such.
|
|
1439
1622
|
*/
|
|
1440
1623
|
export declare namespace DocumentSymbolRequest {
|
|
1441
|
-
const type: RequestType<DocumentSymbolParams,
|
|
1624
|
+
const type: RequestType<DocumentSymbolParams, SymbolInformation[] | DocumentSymbol[] | null, void, DocumentSymbolRegistrationOptions>;
|
|
1625
|
+
const resultType: ProgressType<SymbolInformation[] | DocumentSymbol[]>;
|
|
1442
1626
|
}
|
|
1443
1627
|
/**
|
|
1444
|
-
*
|
|
1445
|
-
* by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
|
|
1446
|
-
* of type [SymbolInformation[]](#SymbolInformation) or a Thenable that
|
|
1447
|
-
* resolves to such.
|
|
1628
|
+
* The Client Capabilities of a [CodeActionRequest](#CodeActionRequest).
|
|
1448
1629
|
*/
|
|
1449
|
-
export
|
|
1450
|
-
|
|
1630
|
+
export interface CodeActionClientCapabilities {
|
|
1631
|
+
/**
|
|
1632
|
+
* Whether code action supports dynamic registration.
|
|
1633
|
+
*/
|
|
1634
|
+
dynamicRegistration?: boolean;
|
|
1635
|
+
/**
|
|
1636
|
+
* The client support code action literals as a valid
|
|
1637
|
+
* response of the `textDocument/codeAction` request.
|
|
1638
|
+
*
|
|
1639
|
+
* @since 3.8.0
|
|
1640
|
+
*/
|
|
1641
|
+
codeActionLiteralSupport?: {
|
|
1642
|
+
/**
|
|
1643
|
+
* The code action kind is support with the following value
|
|
1644
|
+
* set.
|
|
1645
|
+
*/
|
|
1646
|
+
codeActionKind: {
|
|
1647
|
+
/**
|
|
1648
|
+
* The code action kind values the client supports. When this
|
|
1649
|
+
* property exists the client also guarantees that it will
|
|
1650
|
+
* handle values outside its set gracefully and falls back
|
|
1651
|
+
* to a default value when unknown.
|
|
1652
|
+
*/
|
|
1653
|
+
valueSet: CodeActionKind[];
|
|
1654
|
+
};
|
|
1655
|
+
};
|
|
1656
|
+
/**
|
|
1657
|
+
* Whether code action supports the `isPreferred` property.
|
|
1658
|
+
* @since 3.15.0
|
|
1659
|
+
*/
|
|
1660
|
+
isPreferredSupport?: boolean;
|
|
1451
1661
|
}
|
|
1452
1662
|
/**
|
|
1453
|
-
*
|
|
1663
|
+
* The parameters of a [CodeActionRequest](#CodeActionRequest).
|
|
1454
1664
|
*/
|
|
1455
|
-
export interface CodeActionParams {
|
|
1665
|
+
export interface CodeActionParams extends WorkDoneProgressParams, PartialResultParams {
|
|
1456
1666
|
/**
|
|
1457
1667
|
* The document in which the command was invoked.
|
|
1458
1668
|
*/
|
|
@@ -1466,6 +1676,21 @@ export interface CodeActionParams {
|
|
|
1466
1676
|
*/
|
|
1467
1677
|
context: CodeActionContext;
|
|
1468
1678
|
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Provider options for a [CodeActionRequest](#CodeActionRequest).
|
|
1681
|
+
*/
|
|
1682
|
+
export interface CodeActionOptions extends WorkDoneProgressOptions {
|
|
1683
|
+
/**
|
|
1684
|
+
* CodeActionKinds that this server may return.
|
|
1685
|
+
*
|
|
1686
|
+
* The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server
|
|
1687
|
+
* may list out every specific kind they provide.
|
|
1688
|
+
*/
|
|
1689
|
+
codeActionKinds?: CodeActionKind[];
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* Registration options for a [CodeActionRequest](#CodeActionRequest).
|
|
1693
|
+
*/
|
|
1469
1694
|
export interface CodeActionRegistrationOptions extends TextDocumentRegistrationOptions, CodeActionOptions {
|
|
1470
1695
|
}
|
|
1471
1696
|
/**
|
|
@@ -1473,18 +1698,92 @@ export interface CodeActionRegistrationOptions extends TextDocumentRegistrationO
|
|
|
1473
1698
|
*/
|
|
1474
1699
|
export declare namespace CodeActionRequest {
|
|
1475
1700
|
const type: RequestType<CodeActionParams, (Command | CodeAction)[] | null, void, CodeActionRegistrationOptions>;
|
|
1701
|
+
const resultType: ProgressType<(Command | CodeAction)[]>;
|
|
1702
|
+
}
|
|
1703
|
+
/**
|
|
1704
|
+
* Client capabilities for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
1705
|
+
*/
|
|
1706
|
+
export interface WorkspaceSymbolClientCapabilities {
|
|
1707
|
+
/**
|
|
1708
|
+
* Symbol request supports dynamic registration.
|
|
1709
|
+
*/
|
|
1710
|
+
dynamicRegistration?: boolean;
|
|
1711
|
+
/**
|
|
1712
|
+
* Specific capabilities for the `SymbolKind` in the `workspace/symbol` request.
|
|
1713
|
+
*/
|
|
1714
|
+
symbolKind?: {
|
|
1715
|
+
/**
|
|
1716
|
+
* The symbol kind values the client supports. When this
|
|
1717
|
+
* property exists the client also guarantees that it will
|
|
1718
|
+
* handle values outside its set gracefully and falls back
|
|
1719
|
+
* to a default value when unknown.
|
|
1720
|
+
*
|
|
1721
|
+
* If this property is not present the client only supports
|
|
1722
|
+
* the symbol kinds from `File` to `Array` as defined in
|
|
1723
|
+
* the initial version of the protocol.
|
|
1724
|
+
*/
|
|
1725
|
+
valueSet?: SymbolKind[];
|
|
1726
|
+
};
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* The parameters of a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
1730
|
+
*/
|
|
1731
|
+
export interface WorkspaceSymbolParams extends WorkDoneProgressParams, PartialResultParams {
|
|
1732
|
+
/**
|
|
1733
|
+
* A query string to filter symbols by. Clients may send an empty
|
|
1734
|
+
* string here to request all symbols.
|
|
1735
|
+
*/
|
|
1736
|
+
query: string;
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
* Server capabilities for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
1740
|
+
*/
|
|
1741
|
+
export interface WorkspaceSymbolOptions extends WorkDoneProgressOptions {
|
|
1742
|
+
}
|
|
1743
|
+
/**
|
|
1744
|
+
* Registration options for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
1745
|
+
*/
|
|
1746
|
+
export interface WorkspaceSymbolRegistrationOptions extends WorkspaceSymbolOptions {
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* A request to list project-wide symbols matching the query string given
|
|
1750
|
+
* by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
|
|
1751
|
+
* of type [SymbolInformation[]](#SymbolInformation) or a Thenable that
|
|
1752
|
+
* resolves to such.
|
|
1753
|
+
*/
|
|
1754
|
+
export declare namespace WorkspaceSymbolRequest {
|
|
1755
|
+
const type: RequestType<WorkspaceSymbolParams, SymbolInformation[] | null, void, WorkspaceSymbolRegistrationOptions>;
|
|
1756
|
+
const resultType: ProgressType<SymbolInformation[]>;
|
|
1476
1757
|
}
|
|
1477
1758
|
/**
|
|
1478
|
-
*
|
|
1759
|
+
* The client capabilities of a [CodeLensRequest](#CodeLensRequest).
|
|
1479
1760
|
*/
|
|
1480
|
-
export interface
|
|
1761
|
+
export interface CodeLensClientCapabilities {
|
|
1762
|
+
/**
|
|
1763
|
+
* Whether code lens supports dynamic registration.
|
|
1764
|
+
*/
|
|
1765
|
+
dynamicRegistration?: boolean;
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
* The parameters of a [CodeLensRequest](#CodeLensRequest).
|
|
1769
|
+
*/
|
|
1770
|
+
export interface CodeLensParams extends WorkDoneProgressParams, PartialResultParams {
|
|
1481
1771
|
/**
|
|
1482
1772
|
* The document to request code lens for.
|
|
1483
1773
|
*/
|
|
1484
1774
|
textDocument: TextDocumentIdentifier;
|
|
1485
1775
|
}
|
|
1486
1776
|
/**
|
|
1487
|
-
* Code Lens
|
|
1777
|
+
* Code Lens provider options of a [CodeLensRequest](#CodeLensRequest).
|
|
1778
|
+
*/
|
|
1779
|
+
export interface CodeLensOptions extends WorkDoneProgressOptions {
|
|
1780
|
+
/**
|
|
1781
|
+
* Code lens has a resolve provider as well.
|
|
1782
|
+
*/
|
|
1783
|
+
resolveProvider?: boolean;
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* Registration options for a [CodeLensRequest](#CodeLensRequest).
|
|
1488
1787
|
*/
|
|
1489
1788
|
export interface CodeLensRegistrationOptions extends TextDocumentRegistrationOptions, CodeLensOptions {
|
|
1490
1789
|
}
|
|
@@ -1493,6 +1792,7 @@ export interface CodeLensRegistrationOptions extends TextDocumentRegistrationOpt
|
|
|
1493
1792
|
*/
|
|
1494
1793
|
export declare namespace CodeLensRequest {
|
|
1495
1794
|
const type: RequestType<CodeLensParams, CodeLens[] | null, void, CodeLensRegistrationOptions>;
|
|
1795
|
+
const resultType: ProgressType<CodeLens[]>;
|
|
1496
1796
|
}
|
|
1497
1797
|
/**
|
|
1498
1798
|
* A request to resolve a command for a given code lens.
|
|
@@ -1500,7 +1800,72 @@ export declare namespace CodeLensRequest {
|
|
|
1500
1800
|
export declare namespace CodeLensResolveRequest {
|
|
1501
1801
|
const type: RequestType<CodeLens, CodeLens, void, void>;
|
|
1502
1802
|
}
|
|
1503
|
-
|
|
1803
|
+
/**
|
|
1804
|
+
* The client capabilities of a [DocumentLinkRequest](#DocumentLinkRequest).
|
|
1805
|
+
*/
|
|
1806
|
+
export interface DocumentLinkClientCapabilities {
|
|
1807
|
+
/**
|
|
1808
|
+
* Whether document link supports dynamic registration.
|
|
1809
|
+
*/
|
|
1810
|
+
dynamicRegistration?: boolean;
|
|
1811
|
+
/**
|
|
1812
|
+
* Whether the client support the `tooltip` property on `DocumentLink`.
|
|
1813
|
+
*
|
|
1814
|
+
* @since 3.15.0
|
|
1815
|
+
*/
|
|
1816
|
+
tooltipSupport?: boolean;
|
|
1817
|
+
}
|
|
1818
|
+
/**
|
|
1819
|
+
* The parameters of a [DocumentLinkRequest](#DocumentLinkRequest).
|
|
1820
|
+
*/
|
|
1821
|
+
export interface DocumentLinkParams extends WorkDoneProgressParams, PartialResultParams {
|
|
1822
|
+
/**
|
|
1823
|
+
* The document to provide document links for.
|
|
1824
|
+
*/
|
|
1825
|
+
textDocument: TextDocumentIdentifier;
|
|
1826
|
+
}
|
|
1827
|
+
/**
|
|
1828
|
+
* Provider options for a [DocumentLinkRequest](#DocumentLinkRequest).
|
|
1829
|
+
*/
|
|
1830
|
+
export interface DocumentLinkOptions extends WorkDoneProgressOptions {
|
|
1831
|
+
/**
|
|
1832
|
+
* Document links have a resolve provider as well.
|
|
1833
|
+
*/
|
|
1834
|
+
resolveProvider?: boolean;
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* Registration options for a [DocumentLinkRequest](#DocumentLinkRequest).
|
|
1838
|
+
*/
|
|
1839
|
+
export interface DocumentLinkRegistrationOptions extends TextDocumentRegistrationOptions, DocumentLinkOptions {
|
|
1840
|
+
}
|
|
1841
|
+
/**
|
|
1842
|
+
* A request to provide document links
|
|
1843
|
+
*/
|
|
1844
|
+
export declare namespace DocumentLinkRequest {
|
|
1845
|
+
const type: RequestType<DocumentLinkParams, DocumentLink[] | null, void, DocumentLinkRegistrationOptions>;
|
|
1846
|
+
const resultType: ProgressType<DocumentLink[]>;
|
|
1847
|
+
}
|
|
1848
|
+
/**
|
|
1849
|
+
* Request to resolve additional information for a given document link. The request's
|
|
1850
|
+
* parameter is of type [DocumentLink](#DocumentLink) the response
|
|
1851
|
+
* is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
|
|
1852
|
+
*/
|
|
1853
|
+
export declare namespace DocumentLinkResolveRequest {
|
|
1854
|
+
const type: RequestType<DocumentLink, DocumentLink, void, void>;
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* Client capabilities of a [DocumentFormattingRequest](#DocumentFormattingRequest).
|
|
1858
|
+
*/
|
|
1859
|
+
export interface DocumentFormattingClientCapabilities {
|
|
1860
|
+
/**
|
|
1861
|
+
* Whether formatting supports dynamic registration.
|
|
1862
|
+
*/
|
|
1863
|
+
dynamicRegistration?: boolean;
|
|
1864
|
+
}
|
|
1865
|
+
/**
|
|
1866
|
+
* The parameters of a [DocumentFormattingRequest](#DocumentFormattingRequest).
|
|
1867
|
+
*/
|
|
1868
|
+
export interface DocumentFormattingParams extends WorkDoneProgressParams {
|
|
1504
1869
|
/**
|
|
1505
1870
|
* The document to format.
|
|
1506
1871
|
*/
|
|
@@ -1510,13 +1875,35 @@ export interface DocumentFormattingParams {
|
|
|
1510
1875
|
*/
|
|
1511
1876
|
options: FormattingOptions;
|
|
1512
1877
|
}
|
|
1878
|
+
/**
|
|
1879
|
+
* Provider options for a [DocumentFormattingRequest](#DocumentFormattingRequest).
|
|
1880
|
+
*/
|
|
1881
|
+
export interface DocumentFormattingOptions extends WorkDoneProgressOptions {
|
|
1882
|
+
}
|
|
1883
|
+
/**
|
|
1884
|
+
* Registration options for a [DocumentFormattingRequest](#DocumentFormattingRequest).
|
|
1885
|
+
*/
|
|
1886
|
+
export interface DocumentFormattingRegistrationOptions extends TextDocumentRegistrationOptions, DocumentFormattingOptions {
|
|
1887
|
+
}
|
|
1513
1888
|
/**
|
|
1514
1889
|
* A request to to format a whole document.
|
|
1515
1890
|
*/
|
|
1516
1891
|
export declare namespace DocumentFormattingRequest {
|
|
1517
|
-
const type: RequestType<DocumentFormattingParams, TextEdit[] | null, void,
|
|
1892
|
+
const type: RequestType<DocumentFormattingParams, TextEdit[] | null, void, DocumentFormattingRegistrationOptions>;
|
|
1518
1893
|
}
|
|
1519
|
-
|
|
1894
|
+
/**
|
|
1895
|
+
* Client capabilities of a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
|
1896
|
+
*/
|
|
1897
|
+
export interface DocumentRangeFormattingClientCapabilities {
|
|
1898
|
+
/**
|
|
1899
|
+
* Whether range formatting supports dynamic registration.
|
|
1900
|
+
*/
|
|
1901
|
+
dynamicRegistration?: boolean;
|
|
1902
|
+
}
|
|
1903
|
+
/**
|
|
1904
|
+
* The parameters of a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
|
1905
|
+
*/
|
|
1906
|
+
export interface DocumentRangeFormattingParams extends WorkDoneProgressParams {
|
|
1520
1907
|
/**
|
|
1521
1908
|
* The document to format.
|
|
1522
1909
|
*/
|
|
@@ -1530,12 +1917,34 @@ export interface DocumentRangeFormattingParams {
|
|
|
1530
1917
|
*/
|
|
1531
1918
|
options: FormattingOptions;
|
|
1532
1919
|
}
|
|
1920
|
+
/**
|
|
1921
|
+
* Provider options for a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
|
1922
|
+
*/
|
|
1923
|
+
export interface DocumentRangeFormattingOptions extends WorkDoneProgressOptions {
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Registration options for a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
|
1927
|
+
*/
|
|
1928
|
+
export interface DocumentRangeFormattingRegistrationOptions extends TextDocumentRegistrationOptions, DocumentRangeFormattingOptions {
|
|
1929
|
+
}
|
|
1533
1930
|
/**
|
|
1534
1931
|
* A request to to format a range in a document.
|
|
1535
1932
|
*/
|
|
1536
1933
|
export declare namespace DocumentRangeFormattingRequest {
|
|
1537
|
-
const type: RequestType<DocumentRangeFormattingParams, TextEdit[] | null, void,
|
|
1934
|
+
const type: RequestType<DocumentRangeFormattingParams, TextEdit[] | null, void, DocumentRangeFormattingRegistrationOptions>;
|
|
1538
1935
|
}
|
|
1936
|
+
/**
|
|
1937
|
+
* Client capabilities of a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
|
1938
|
+
*/
|
|
1939
|
+
export interface DocumentOnTypeFormattingClientCapabilities {
|
|
1940
|
+
/**
|
|
1941
|
+
* Whether on type formatting supports dynamic registration.
|
|
1942
|
+
*/
|
|
1943
|
+
dynamicRegistration?: boolean;
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
* The parameters of a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
|
1947
|
+
*/
|
|
1539
1948
|
export interface DocumentOnTypeFormattingParams {
|
|
1540
1949
|
/**
|
|
1541
1950
|
* The document to format.
|
|
@@ -1555,7 +1964,20 @@ export interface DocumentOnTypeFormattingParams {
|
|
|
1555
1964
|
options: FormattingOptions;
|
|
1556
1965
|
}
|
|
1557
1966
|
/**
|
|
1558
|
-
*
|
|
1967
|
+
* Provider options for a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
|
1968
|
+
*/
|
|
1969
|
+
export interface DocumentOnTypeFormattingOptions {
|
|
1970
|
+
/**
|
|
1971
|
+
* A character on which formatting should be triggered, like `}`.
|
|
1972
|
+
*/
|
|
1973
|
+
firstTriggerCharacter: string;
|
|
1974
|
+
/**
|
|
1975
|
+
* More trigger characters.
|
|
1976
|
+
*/
|
|
1977
|
+
moreTriggerCharacter?: string[];
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* Registration options for a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
|
1559
1981
|
*/
|
|
1560
1982
|
export interface DocumentOnTypeFormattingRegistrationOptions extends TextDocumentRegistrationOptions, DocumentOnTypeFormattingOptions {
|
|
1561
1983
|
}
|
|
@@ -1565,7 +1987,23 @@ export interface DocumentOnTypeFormattingRegistrationOptions extends TextDocumen
|
|
|
1565
1987
|
export declare namespace DocumentOnTypeFormattingRequest {
|
|
1566
1988
|
const type: RequestType<DocumentOnTypeFormattingParams, TextEdit[] | null, void, DocumentOnTypeFormattingRegistrationOptions>;
|
|
1567
1989
|
}
|
|
1568
|
-
export interface
|
|
1990
|
+
export interface RenameClientCapabilities {
|
|
1991
|
+
/**
|
|
1992
|
+
* Whether rename supports dynamic registration.
|
|
1993
|
+
*/
|
|
1994
|
+
dynamicRegistration?: boolean;
|
|
1995
|
+
/**
|
|
1996
|
+
* Client supports testing for validity of rename operations
|
|
1997
|
+
* before execution.
|
|
1998
|
+
*
|
|
1999
|
+
* @since version 3.12.0
|
|
2000
|
+
*/
|
|
2001
|
+
prepareSupport?: boolean;
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* The parameters of a [RenameRequest](#RenameRequest).
|
|
2005
|
+
*/
|
|
2006
|
+
export interface RenameParams extends WorkDoneProgressParams {
|
|
1569
2007
|
/**
|
|
1570
2008
|
* The document to rename.
|
|
1571
2009
|
*/
|
|
@@ -1581,52 +2019,52 @@ export interface RenameParams {
|
|
|
1581
2019
|
*/
|
|
1582
2020
|
newName: string;
|
|
1583
2021
|
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Provider options for a [RenameRequest](#RenameRequest).
|
|
2024
|
+
*/
|
|
2025
|
+
export interface RenameOptions extends WorkDoneProgressOptions {
|
|
2026
|
+
/**
|
|
2027
|
+
* Renames should be checked and tested before being executed.
|
|
2028
|
+
*
|
|
2029
|
+
* @since version 3.12.0
|
|
2030
|
+
*/
|
|
2031
|
+
prepareProvider?: boolean;
|
|
2032
|
+
}
|
|
2033
|
+
/**
|
|
2034
|
+
* Registration options for a [RenameRequest](#RenameRequest).
|
|
2035
|
+
*/
|
|
2036
|
+
export interface RenameRegistrationOptions extends TextDocumentRegistrationOptions, RenameOptions {
|
|
2037
|
+
}
|
|
1584
2038
|
/**
|
|
1585
2039
|
* A request to rename a symbol.
|
|
1586
2040
|
*/
|
|
1587
2041
|
export declare namespace RenameRequest {
|
|
1588
2042
|
const type: RequestType<RenameParams, WorkspaceEdit | null, void, RenameRegistrationOptions>;
|
|
1589
2043
|
}
|
|
2044
|
+
export interface PrepareRenameParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
2045
|
+
}
|
|
1590
2046
|
/**
|
|
1591
2047
|
* A request to test and perform the setup necessary for a rename.
|
|
1592
2048
|
*/
|
|
1593
2049
|
export declare namespace PrepareRenameRequest {
|
|
1594
|
-
const type: RequestType<
|
|
2050
|
+
const type: RequestType<PrepareRenameParams, Range | {
|
|
1595
2051
|
range: Range;
|
|
1596
2052
|
placeholder: string;
|
|
1597
2053
|
} | null, void, void>;
|
|
1598
2054
|
}
|
|
1599
2055
|
/**
|
|
1600
|
-
*
|
|
2056
|
+
* The client capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
|
|
1601
2057
|
*/
|
|
1602
|
-
export interface
|
|
1603
|
-
}
|
|
1604
|
-
export interface DocumentLinkParams {
|
|
2058
|
+
export interface ExecuteCommandClientCapabilities {
|
|
1605
2059
|
/**
|
|
1606
|
-
*
|
|
2060
|
+
* Execute command supports dynamic registration.
|
|
1607
2061
|
*/
|
|
1608
|
-
|
|
2062
|
+
dynamicRegistration?: boolean;
|
|
1609
2063
|
}
|
|
1610
2064
|
/**
|
|
1611
|
-
*
|
|
2065
|
+
* The parameters of a [ExecuteCommandRequest](#ExecuteCommandRequest).
|
|
1612
2066
|
*/
|
|
1613
|
-
export interface
|
|
1614
|
-
}
|
|
1615
|
-
/**
|
|
1616
|
-
* A request to provide document links
|
|
1617
|
-
*/
|
|
1618
|
-
export declare namespace DocumentLinkRequest {
|
|
1619
|
-
const type: RequestType<DocumentLinkParams, DocumentLink[] | null, void, DocumentLinkRegistrationOptions>;
|
|
1620
|
-
}
|
|
1621
|
-
/**
|
|
1622
|
-
* Request to resolve additional information for a given document link. The request's
|
|
1623
|
-
* parameter is of type [DocumentLink](#DocumentLink) the response
|
|
1624
|
-
* is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
|
|
1625
|
-
*/
|
|
1626
|
-
export declare namespace DocumentLinkResolveRequest {
|
|
1627
|
-
const type: RequestType<DocumentLink, DocumentLink, void, void>;
|
|
1628
|
-
}
|
|
1629
|
-
export interface ExecuteCommandParams {
|
|
2067
|
+
export interface ExecuteCommandParams extends WorkDoneProgressParams {
|
|
1630
2068
|
/**
|
|
1631
2069
|
* The identifier of the actual command handler.
|
|
1632
2070
|
*/
|
|
@@ -1637,7 +2075,16 @@ export interface ExecuteCommandParams {
|
|
|
1637
2075
|
arguments?: any[];
|
|
1638
2076
|
}
|
|
1639
2077
|
/**
|
|
1640
|
-
*
|
|
2078
|
+
* The server capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
|
|
2079
|
+
*/
|
|
2080
|
+
export interface ExecuteCommandOptions extends WorkDoneProgressOptions {
|
|
2081
|
+
/**
|
|
2082
|
+
* The commands to be executed on the server
|
|
2083
|
+
*/
|
|
2084
|
+
commands: string[];
|
|
2085
|
+
}
|
|
2086
|
+
/**
|
|
2087
|
+
* Registration options for a [ExecuteCommandRequest](#ExecuteCommandRequest).
|
|
1641
2088
|
*/
|
|
1642
2089
|
export interface ExecuteCommandRegistrationOptions extends ExecuteCommandOptions {
|
|
1643
2090
|
}
|
|
@@ -1648,6 +2095,26 @@ export interface ExecuteCommandRegistrationOptions extends ExecuteCommandOptions
|
|
|
1648
2095
|
export declare namespace ExecuteCommandRequest {
|
|
1649
2096
|
const type: RequestType<ExecuteCommandParams, any, void, ExecuteCommandRegistrationOptions>;
|
|
1650
2097
|
}
|
|
2098
|
+
export interface WorkspaceEditClientCapabilities {
|
|
2099
|
+
/**
|
|
2100
|
+
* The client supports versioned document changes in `WorkspaceEdit`s
|
|
2101
|
+
*/
|
|
2102
|
+
documentChanges?: boolean;
|
|
2103
|
+
/**
|
|
2104
|
+
* The resource operations the client supports. Clients should at least
|
|
2105
|
+
* support 'create', 'rename' and 'delete' files and folders.
|
|
2106
|
+
*
|
|
2107
|
+
* @since 3.13.0
|
|
2108
|
+
*/
|
|
2109
|
+
resourceOperations?: ResourceOperationKind[];
|
|
2110
|
+
/**
|
|
2111
|
+
* The failure handling strategy of a client if applying the workspace edit
|
|
2112
|
+
* fails.
|
|
2113
|
+
*
|
|
2114
|
+
* @since 3.13.0
|
|
2115
|
+
*/
|
|
2116
|
+
failureHandling?: FailureHandlingKind;
|
|
2117
|
+
}
|
|
1651
2118
|
/**
|
|
1652
2119
|
* The parameters passed via a apply workspace edit request.
|
|
1653
2120
|
*/
|
|
@@ -1690,4 +2157,5 @@ export interface ApplyWorkspaceEditResponse {
|
|
|
1690
2157
|
export declare namespace ApplyWorkspaceEditRequest {
|
|
1691
2158
|
const type: RequestType<ApplyWorkspaceEditParams, ApplyWorkspaceEditResponse, void, void>;
|
|
1692
2159
|
}
|
|
1693
|
-
export { ImplementationRequest, TypeDefinitionRequest, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest,
|
|
2160
|
+
export { ImplementationRequest, TypeDefinitionRequest, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, DeclarationClientCapabilities, DeclarationRequest, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest };
|
|
2161
|
+
export { DocumentColorOptions as ColorProviderOptions, DocumentColorOptions as ColorOptions, FoldingRangeOptions as FoldingRangeProviderOptions, SelectionRangeOptions as SelectionRangeProviderOptions, DocumentColorRegistrationOptions as ColorRegistrationOptions };
|