vscode-languageserver-protocol 3.17.0-next.15 → 3.17.0-next.18
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/lib/common/api.d.ts +0 -69
- package/lib/common/api.js +1 -26
- package/lib/common/connection.d.ts +26 -2
- package/lib/common/protocol.callHierarchy.d.ts +1 -1
- package/lib/common/protocol.colorProvider.d.ts +1 -1
- package/lib/common/protocol.configuration.d.ts +1 -14
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +326 -105
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +79 -38
- package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +13 -8
- package/lib/common/protocol.foldingRange.d.ts +20 -26
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +2 -2
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +115 -0
- package/lib/common/protocol.inlayHint.js +44 -0
- package/lib/common/protocol.inlineValue.d.ts +91 -0
- package/lib/common/protocol.inlineValue.js +31 -0
- package/lib/common/protocol.js +88 -15
- package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
- package/lib/common/protocol.moniker.d.ts +13 -11
- package/lib/common/protocol.moniker.js +8 -8
- package/lib/common/{proposed.notebooks.d.ts → protocol.notebook.d.ts} +57 -53
- package/lib/common/{proposed.notebooks.js → protocol.notebook.js} +9 -5
- package/lib/common/protocol.progress.d.ts +2 -14
- package/lib/common/protocol.progress.js +4 -2
- package/lib/common/protocol.selectionRange.d.ts +2 -2
- package/lib/common/protocol.semanticTokens.d.ts +1 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +19 -10
- package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +7 -4
- package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
- package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
- package/metaModel.schema.json +686 -0
- package/package.json +3 -3
- package/lib/common/proposed.inlineValue.d.ts +0 -84
- package/lib/common/proposed.inlineValue.js +0 -29
package/lib/common/protocol.d.ts
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { ProgressToken } from 'vscode-jsonrpc';
|
|
2
2
|
import { ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages';
|
|
3
|
-
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol } from 'vscode-languageserver-types';
|
|
3
|
+
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol, URI, WorkspaceFolder } from 'vscode-languageserver-types';
|
|
4
4
|
import { ImplementationRequest, ImplementationClientCapabilities, ImplementationOptions, ImplementationRegistrationOptions, ImplementationParams } from './protocol.implementation';
|
|
5
5
|
import { TypeDefinitionRequest, TypeDefinitionClientCapabilities, TypeDefinitionOptions, TypeDefinitionRegistrationOptions, TypeDefinitionParams } from './protocol.typeDefinition';
|
|
6
|
-
import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams,
|
|
7
|
-
import { ConfigurationRequest, ConfigurationParams, ConfigurationItem
|
|
6
|
+
import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams, WorkspaceFoldersServerCapabilities } from './protocol.workspaceFolder';
|
|
7
|
+
import { ConfigurationRequest, ConfigurationParams, ConfigurationItem } from './protocol.configuration';
|
|
8
8
|
import { DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorClientCapabilities, DocumentColorRegistrationOptions } from './protocol.colorProvider';
|
|
9
9
|
import { FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions } from './protocol.foldingRange';
|
|
10
10
|
import { DeclarationClientCapabilities, DeclarationRequest, DeclarationOptions, DeclarationRegistrationOptions, DeclarationParams } from './protocol.declaration';
|
|
11
11
|
import { SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeRequest, SelectionRangeParams, SelectionRangeRegistrationOptions } from './protocol.selectionRange';
|
|
12
|
-
import {
|
|
12
|
+
import { WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification } from './protocol.progress';
|
|
13
13
|
import { CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest } from './protocol.callHierarchy';
|
|
14
14
|
import { SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensWorkspaceClientCapabilities, SemanticTokensRegistrationType } from './protocol.semanticTokens';
|
|
15
15
|
import { ShowDocumentParams, ShowDocumentResult, ShowDocumentRequest, ShowDocumentClientCapabilities } from './protocol.showDocument';
|
|
16
16
|
import { LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest } from './protocol.linkedEditingRange';
|
|
17
17
|
import { FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest } from './protocol.fileOperations';
|
|
18
18
|
import { UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest } from './protocol.moniker';
|
|
19
|
-
import { TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions } from './
|
|
20
|
-
import {
|
|
19
|
+
import { TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions, TypeHierarchyPrepareParams, TypeHierarchyPrepareRequest, TypeHierarchySubtypesParams, TypeHierarchySubtypesRequest, TypeHierarchySupertypesParams, TypeHierarchySupertypesRequest } from './protocol.typeHierarchy';
|
|
20
|
+
import { InlineValueClientCapabilities, InlineValueOptions, InlineValueRegistrationOptions, InlineValueWorkspaceClientCapabilities, InlineValueParams, InlineValueRequest, InlineValueRefreshRequest } from './protocol.inlineValue';
|
|
21
|
+
import { InlayHintClientCapabilities, InlayHintOptions, InlayHintRegistrationOptions, InlayHintWorkspaceClientCapabilities, InlayHintParams, InlayHintRequest, InlayHintResolveRequest, InlayHintRefreshRequest } from './protocol.inlayHint';
|
|
22
|
+
import { DiagnosticClientCapabilities, DiagnosticOptions, DiagnosticRegistrationOptions, DiagnosticServerCancellationData, DocumentDiagnosticParams, DocumentDiagnosticReportKind, FullDocumentDiagnosticReport, RelatedFullDocumentDiagnosticReport, UnchangedDocumentDiagnosticReport, RelatedUnchangedDocumentDiagnosticReport, DocumentDiagnosticReport, DocumentDiagnosticReportPartialResult, DocumentDiagnosticRequest, PreviousResultId, WorkspaceDiagnosticParams, WorkspaceFullDocumentDiagnosticReport, WorkspaceUnchangedDocumentDiagnosticReport, WorkspaceDocumentDiagnosticReport, WorkspaceDiagnosticReport, WorkspaceDiagnosticReportPartialResult, WorkspaceDiagnosticRequest, DiagnosticRefreshRequest, DiagnosticWorkspaceClientCapabilities } from './protocol.diagnostic';
|
|
23
|
+
import { NotebookDocumentSyncClientCapabilities, NotebookCellKind, ExecutionSummary, NotebookCell, NotebookDocument, NotebookDocumentIdentifier, VersionedNotebookDocumentIdentifier, NotebookDocumentSyncOptions, NotebookDocumentSyncRegistrationOptions, NotebookDocumentSyncRegistrationType, DidOpenNotebookDocumentParams, DidOpenNotebookDocumentNotification, NotebookCellArrayChange, NotebookDocumentChangeEvent, DidChangeNotebookDocumentParams, DidChangeNotebookDocumentNotification, DidSaveNotebookDocumentParams, DidSaveNotebookDocumentNotification, DidCloseNotebookDocumentParams, DidCloseNotebookDocumentNotification } from './protocol.notebook';
|
|
21
24
|
/**
|
|
22
25
|
* A document filter denotes a document by different properties like
|
|
23
26
|
* the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of
|
|
@@ -34,7 +37,8 @@ import { InlineValuesClientCapabilities, InlineValuesOptions, InlineValuesRegist
|
|
|
34
37
|
* @sample A language filter that applies to typescript files on disk: `{ language: 'typescript', scheme: 'file' }`
|
|
35
38
|
* @sample A language filter that applies to all package.json paths: `{ language: 'json', pattern: '**package.json' }`
|
|
36
39
|
*
|
|
37
|
-
* @since 3.17.0
|
|
40
|
+
* @since 3.17.0
|
|
41
|
+
* @proposed
|
|
38
42
|
*/
|
|
39
43
|
export declare type TextDocumentFilter = {
|
|
40
44
|
/** A language id, like `typescript`. */
|
|
@@ -62,50 +66,48 @@ export declare type TextDocumentFilter = {
|
|
|
62
66
|
* The TextDocumentFilter namespace provides helper functions to work with
|
|
63
67
|
* [TextDocumentFilter](#TextDocumentFilter) literals.
|
|
64
68
|
*
|
|
65
|
-
* @since 3.17.0
|
|
69
|
+
* @since 3.17.0
|
|
70
|
+
* @proposed
|
|
66
71
|
*/
|
|
67
72
|
export declare namespace TextDocumentFilter {
|
|
68
73
|
function is(value: any): value is TextDocumentFilter;
|
|
69
74
|
}
|
|
70
75
|
/**
|
|
71
76
|
* A notebook document filter denotes a notebook document by
|
|
72
|
-
* different properties.
|
|
77
|
+
* different properties. The properties will be match
|
|
78
|
+
* against the notebook's URI (same as with documents)
|
|
73
79
|
*
|
|
74
|
-
* @since 3.17.0
|
|
80
|
+
* @since 3.17.0
|
|
81
|
+
* @proposed
|
|
75
82
|
*/
|
|
76
83
|
export declare type NotebookDocumentFilter = {
|
|
77
84
|
/** The type of the enclosing notebook. */
|
|
78
85
|
notebookType: string;
|
|
79
|
-
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`.
|
|
80
|
-
* Will be matched against the URI of the notebook. */
|
|
86
|
+
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
|
|
81
87
|
scheme?: string;
|
|
82
|
-
/** A glob pattern
|
|
83
|
-
* Will be matched against the notebooks` URI path section.*/
|
|
88
|
+
/** A glob pattern. */
|
|
84
89
|
pattern?: string;
|
|
85
90
|
} | {
|
|
86
91
|
/** The type of the enclosing notebook. */
|
|
87
92
|
notebookType?: string;
|
|
88
|
-
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled
|
|
89
|
-
* Will be matched against the URI of the notebook. */
|
|
93
|
+
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`.*/
|
|
90
94
|
scheme: string;
|
|
91
|
-
/** A glob pattern
|
|
92
|
-
* Will be matched against the notebooks` URI path section.*/
|
|
95
|
+
/** A glob pattern. */
|
|
93
96
|
pattern?: string;
|
|
94
97
|
} | {
|
|
95
98
|
/** The type of the enclosing notebook. */
|
|
96
99
|
notebookType?: string;
|
|
97
|
-
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`.
|
|
98
|
-
* Will be matched against the URI of the notebook. */
|
|
100
|
+
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
|
|
99
101
|
scheme?: string;
|
|
100
|
-
/** A glob pattern
|
|
101
|
-
* Will be matched against the notebooks` URI path section.*/
|
|
102
|
+
/** A glob pattern. */
|
|
102
103
|
pattern: string;
|
|
103
104
|
};
|
|
104
105
|
/**
|
|
105
106
|
* The NotebookDocumentFilter namespace provides helper functions to work with
|
|
106
107
|
* [NotebookDocumentFilter](#NotebookDocumentFilter) literals.
|
|
107
108
|
*
|
|
108
|
-
* @since 3.17.0
|
|
109
|
+
* @since 3.17.0
|
|
110
|
+
* @proposed
|
|
109
111
|
*/
|
|
110
112
|
export declare namespace NotebookDocumentFilter {
|
|
111
113
|
function is(value: any): value is NotebookDocumentFilter;
|
|
@@ -114,40 +116,31 @@ export declare namespace NotebookDocumentFilter {
|
|
|
114
116
|
* A notebook cell text document filter denotes a cell text
|
|
115
117
|
* document by different properties.
|
|
116
118
|
*
|
|
117
|
-
* @since 3.17.0
|
|
119
|
+
* @since 3.17.0
|
|
120
|
+
* @proposed
|
|
118
121
|
*/
|
|
119
122
|
export declare type NotebookCellTextDocumentFilter = {
|
|
120
123
|
/**
|
|
121
124
|
* A filter that matches against the notebook
|
|
122
|
-
* containing the notebook cell.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* A language id like `python`.
|
|
127
|
-
*
|
|
128
|
-
* Will be matched against the language id of the
|
|
129
|
-
* notebook cell document.
|
|
130
|
-
*/
|
|
131
|
-
cellLanguage?: string;
|
|
132
|
-
} | {
|
|
133
|
-
/**
|
|
134
|
-
* A filter that matches against the notebook
|
|
135
|
-
* containing the notebook cell.
|
|
125
|
+
* containing the notebook cell. If a string
|
|
126
|
+
* value is provided it matches against the
|
|
127
|
+
* notebook type. '*' matches every notebook.
|
|
136
128
|
*/
|
|
137
|
-
|
|
129
|
+
notebook: string | NotebookDocumentFilter;
|
|
138
130
|
/**
|
|
139
131
|
* A language id like `python`.
|
|
140
132
|
*
|
|
141
133
|
* Will be matched against the language id of the
|
|
142
|
-
* notebook cell document.
|
|
134
|
+
* notebook cell document. '*' matches every language.
|
|
143
135
|
*/
|
|
144
|
-
|
|
136
|
+
language?: string;
|
|
145
137
|
};
|
|
146
138
|
/**
|
|
147
139
|
* The NotebookCellTextDocumentFilter namespace provides helper functions to work with
|
|
148
140
|
* [NotebookCellTextDocumentFilter](#NotebookCellTextDocumentFilter) literals.
|
|
149
141
|
*
|
|
150
|
-
* @since 3.17.0
|
|
142
|
+
* @since 3.17.0
|
|
143
|
+
* @proposed
|
|
151
144
|
*/
|
|
152
145
|
export declare namespace NotebookCellTextDocumentFilter {
|
|
153
146
|
function is(value: any): value is NotebookCellTextDocumentFilter;
|
|
@@ -325,6 +318,18 @@ export interface WorkspaceClientCapabilities {
|
|
|
325
318
|
* Capabilities specific to the `workspace/executeCommand` request.
|
|
326
319
|
*/
|
|
327
320
|
executeCommand?: ExecuteCommandClientCapabilities;
|
|
321
|
+
/**
|
|
322
|
+
* The client has support for workspace folders
|
|
323
|
+
*
|
|
324
|
+
* @since 3.6.0
|
|
325
|
+
*/
|
|
326
|
+
workspaceFolders?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* The client supports `workspace/configuration` requests.
|
|
329
|
+
*
|
|
330
|
+
* @since 3.6.0
|
|
331
|
+
*/
|
|
332
|
+
configuration?: boolean;
|
|
328
333
|
/**
|
|
329
334
|
* Capabilities specific to the semantic token requests scoped to the
|
|
330
335
|
* workspace.
|
|
@@ -350,8 +355,25 @@ export interface WorkspaceClientCapabilities {
|
|
|
350
355
|
* workspace.
|
|
351
356
|
*
|
|
352
357
|
* @since 3.17.0.
|
|
358
|
+
* @proposed
|
|
353
359
|
*/
|
|
354
|
-
|
|
360
|
+
inlineValue?: InlineValueWorkspaceClientCapabilities;
|
|
361
|
+
/**
|
|
362
|
+
* Capabilities specific to the inlay hints requests scoped to the
|
|
363
|
+
* workspace.
|
|
364
|
+
*
|
|
365
|
+
* @since 3.17.0.
|
|
366
|
+
* @proposed
|
|
367
|
+
*/
|
|
368
|
+
inlayHint?: InlayHintWorkspaceClientCapabilities;
|
|
369
|
+
/**
|
|
370
|
+
* Capabilities specific to the diagnostic requests scoped to the
|
|
371
|
+
* workspace.
|
|
372
|
+
*
|
|
373
|
+
* @since 3.17.0.
|
|
374
|
+
* @proposed
|
|
375
|
+
*/
|
|
376
|
+
diagnostics?: DiagnosticWorkspaceClientCapabilities;
|
|
355
377
|
}
|
|
356
378
|
/**
|
|
357
379
|
* Text document specific client capabilities.
|
|
@@ -482,21 +504,41 @@ export interface TextDocumentClientCapabilities {
|
|
|
482
504
|
/**
|
|
483
505
|
* Capabilities specific to the various type hierarchy requests.
|
|
484
506
|
*
|
|
485
|
-
* @since 3.17.0
|
|
507
|
+
* @since 3.17.0
|
|
508
|
+
* @proposed
|
|
486
509
|
*/
|
|
487
510
|
typeHierarchy?: TypeHierarchyClientCapabilities;
|
|
488
511
|
/**
|
|
489
|
-
* Capabilities specific to the `textDocument/
|
|
512
|
+
* Capabilities specific to the `textDocument/inlineValue` request.
|
|
513
|
+
*
|
|
514
|
+
* @since 3.17.0
|
|
515
|
+
* @proposed
|
|
516
|
+
*/
|
|
517
|
+
inlineValue?: InlineValueClientCapabilities;
|
|
518
|
+
/**
|
|
519
|
+
* Capabilities specific to the `textDocument/inlayHint` request.
|
|
490
520
|
*
|
|
491
|
-
* @since 3.17.0
|
|
521
|
+
* @since 3.17.0
|
|
522
|
+
* @proposed
|
|
523
|
+
*/
|
|
524
|
+
inlayHint?: InlayHintClientCapabilities;
|
|
525
|
+
/**
|
|
526
|
+
* Capabilities specific to the diagnostic pull model.
|
|
527
|
+
*
|
|
528
|
+
* @since 3.17.0
|
|
529
|
+
* @proposed
|
|
492
530
|
*/
|
|
493
|
-
|
|
531
|
+
diagnostic?: DiagnosticClientCapabilities;
|
|
494
532
|
}
|
|
495
533
|
export interface WindowClientCapabilities {
|
|
496
534
|
/**
|
|
497
|
-
*
|
|
498
|
-
*
|
|
499
|
-
*
|
|
535
|
+
* It indicates whether the client supports server initiated
|
|
536
|
+
* progress using the `window/workDoneProgress/create` request.
|
|
537
|
+
*
|
|
538
|
+
* The capability also controls Whether client supports handling
|
|
539
|
+
* of progress notifications. If set servers are allowed to report a
|
|
540
|
+
* `workDoneProgress` property in the request specific server
|
|
541
|
+
* capabilities.
|
|
500
542
|
*
|
|
501
543
|
* @since 3.15.0
|
|
502
544
|
*/
|
|
@@ -551,6 +593,41 @@ export interface MarkdownClientCapabilities {
|
|
|
551
593
|
*/
|
|
552
594
|
allowedTags?: string[];
|
|
553
595
|
}
|
|
596
|
+
/**
|
|
597
|
+
* A set of predefined position encoding kinds.
|
|
598
|
+
*
|
|
599
|
+
* @since 3.17.0
|
|
600
|
+
* @proposed
|
|
601
|
+
*/
|
|
602
|
+
export declare namespace PositionEncodingKind {
|
|
603
|
+
/**
|
|
604
|
+
* Character offsets count UTF-8 code units.
|
|
605
|
+
*/
|
|
606
|
+
const UTF8: PositionEncodingKind;
|
|
607
|
+
/**
|
|
608
|
+
* Character offsets count UTF-16 code units.
|
|
609
|
+
*
|
|
610
|
+
* This is the default and must always be supported
|
|
611
|
+
* by servers
|
|
612
|
+
*/
|
|
613
|
+
const UTF16: PositionEncodingKind;
|
|
614
|
+
/**
|
|
615
|
+
* Character offsets count UTF-32 code units.
|
|
616
|
+
*
|
|
617
|
+
* Implementation note: these are the same as Unicode code points,
|
|
618
|
+
* so this `PositionEncodingKind` may also be used for an
|
|
619
|
+
* encoding-agnostic representation of character offsets.
|
|
620
|
+
*/
|
|
621
|
+
const UTF32: PositionEncodingKind;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* A type indicating how positions are encoded,
|
|
625
|
+
* specifically what column offsets mean.
|
|
626
|
+
*
|
|
627
|
+
* @since 3.17.0
|
|
628
|
+
* @proposed
|
|
629
|
+
*/
|
|
630
|
+
export declare type PositionEncodingKind = string;
|
|
554
631
|
/**
|
|
555
632
|
* General client capabilities.
|
|
556
633
|
*
|
|
@@ -564,6 +641,7 @@ export interface GeneralClientCapabilities {
|
|
|
564
641
|
* anymore since the information is outdated).
|
|
565
642
|
*
|
|
566
643
|
* @since 3.17.0
|
|
644
|
+
* @proposed
|
|
567
645
|
*/
|
|
568
646
|
staleRequestSupport?: {
|
|
569
647
|
/**
|
|
@@ -589,11 +667,48 @@ export interface GeneralClientCapabilities {
|
|
|
589
667
|
* @since 3.16.0
|
|
590
668
|
*/
|
|
591
669
|
markdown?: MarkdownClientCapabilities;
|
|
670
|
+
/**
|
|
671
|
+
* The position encodings supported by the client. Client and server
|
|
672
|
+
* have to agree on the same position encoding to ensure that offsets
|
|
673
|
+
* (e.g. character position in a line) are interpreted the same on both
|
|
674
|
+
* side.
|
|
675
|
+
*
|
|
676
|
+
* To keep the protocol backwards compatible the following applies: if
|
|
677
|
+
* the value 'utf-16' is missing from the array of position encodings
|
|
678
|
+
* servers can assume that the client supports UTF-16. UTF-16 is
|
|
679
|
+
* therefore a mandatory encoding.
|
|
680
|
+
*
|
|
681
|
+
* If omitted it defaults to ['utf-16'].
|
|
682
|
+
*
|
|
683
|
+
* Implementation considerations: since the conversion from one encoding
|
|
684
|
+
* into another requires the content of the file / line the conversion
|
|
685
|
+
* is best done where the file is read which is usually on the server
|
|
686
|
+
* side.
|
|
687
|
+
*
|
|
688
|
+
* @since 3.17.0
|
|
689
|
+
* @proposed
|
|
690
|
+
*/
|
|
691
|
+
positionEncodings?: PositionEncodingKind[];
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Capabilities specific to the notebook document support.
|
|
695
|
+
*
|
|
696
|
+
* @since 3.17.0
|
|
697
|
+
* @proposed
|
|
698
|
+
*/
|
|
699
|
+
export interface NotebookDocumentClientCapabilities {
|
|
700
|
+
/**
|
|
701
|
+
* Capabilities specific to notebook document synchronization
|
|
702
|
+
*
|
|
703
|
+
* @since 3.17.0
|
|
704
|
+
* @proposed
|
|
705
|
+
*/
|
|
706
|
+
synchronization: NotebookDocumentSyncClientCapabilities;
|
|
592
707
|
}
|
|
593
708
|
/**
|
|
594
709
|
* Defines the capabilities provided by the client.
|
|
595
710
|
*/
|
|
596
|
-
export interface
|
|
711
|
+
export interface ClientCapabilities {
|
|
597
712
|
/**
|
|
598
713
|
* Workspace specific client capabilities.
|
|
599
714
|
*/
|
|
@@ -602,6 +717,13 @@ export interface _ClientCapabilities {
|
|
|
602
717
|
* Text document specific client capabilities.
|
|
603
718
|
*/
|
|
604
719
|
textDocument?: TextDocumentClientCapabilities;
|
|
720
|
+
/**
|
|
721
|
+
* Capabilities specific to the notebook document support.
|
|
722
|
+
*
|
|
723
|
+
* @since 3.17.0
|
|
724
|
+
* @proposed
|
|
725
|
+
*/
|
|
726
|
+
notebookDocument?: NotebookDocumentClientCapabilities;
|
|
605
727
|
/**
|
|
606
728
|
* Window specific client capabilities.
|
|
607
729
|
*/
|
|
@@ -617,7 +739,6 @@ export interface _ClientCapabilities {
|
|
|
617
739
|
*/
|
|
618
740
|
experimental?: object;
|
|
619
741
|
}
|
|
620
|
-
export declare type ClientCapabilities = _ClientCapabilities & WorkspaceFoldersClientCapabilities & ConfigurationClientCapabilities & WorkDoneProgressClientCapabilities;
|
|
621
742
|
/**
|
|
622
743
|
* Static registration options to be returned in the initialize
|
|
623
744
|
* request.
|
|
@@ -681,12 +802,35 @@ export declare namespace WorkDoneProgressOptions {
|
|
|
681
802
|
* Defines the capabilities provided by a language
|
|
682
803
|
* server.
|
|
683
804
|
*/
|
|
684
|
-
export interface
|
|
805
|
+
export interface ServerCapabilities<T = any> {
|
|
685
806
|
/**
|
|
686
|
-
*
|
|
687
|
-
*
|
|
807
|
+
* The position encoding the server picked from the encodings offered
|
|
808
|
+
* by the client via the client capability `general.positionEncodings`.
|
|
809
|
+
*
|
|
810
|
+
* If the client didn't provide any position encodings the only valid
|
|
811
|
+
* value that a server can return is 'utf-16'.
|
|
812
|
+
*
|
|
813
|
+
* If omitted it defaults to 'utf-16'.
|
|
814
|
+
*
|
|
815
|
+
* If for some reason
|
|
816
|
+
*
|
|
817
|
+
* @since 3.17.0
|
|
818
|
+
* @proposed
|
|
819
|
+
*/
|
|
820
|
+
positionEncoding?: PositionEncodingKind;
|
|
821
|
+
/**
|
|
822
|
+
* Defines how text documents are synced. Is either a detailed structure
|
|
823
|
+
* defining each notification or for backwards compatibility the
|
|
824
|
+
* TextDocumentSyncKind number.
|
|
688
825
|
*/
|
|
689
826
|
textDocumentSync?: TextDocumentSyncOptions | TextDocumentSyncKind;
|
|
827
|
+
/**
|
|
828
|
+
* Defines how notebook documents are synced.
|
|
829
|
+
*
|
|
830
|
+
* @since 3.17.0
|
|
831
|
+
* @proposed
|
|
832
|
+
*/
|
|
833
|
+
notebookDocumentSync?: NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions;
|
|
690
834
|
/**
|
|
691
835
|
* The server provides completion support.
|
|
692
836
|
*/
|
|
@@ -797,17 +941,6 @@ export interface _ServerCapabilities<T = any> {
|
|
|
797
941
|
* @since 3.16.0
|
|
798
942
|
*/
|
|
799
943
|
semanticTokensProvider?: SemanticTokensOptions | SemanticTokensRegistrationOptions;
|
|
800
|
-
/**
|
|
801
|
-
* Window specific server capabilities.
|
|
802
|
-
*/
|
|
803
|
-
workspace?: {
|
|
804
|
-
/**
|
|
805
|
-
* The server is interested in notifications/requests for operations on files.
|
|
806
|
-
*
|
|
807
|
-
* @since 3.16.0
|
|
808
|
-
*/
|
|
809
|
-
fileOperations?: FileOperationOptions;
|
|
810
|
-
};
|
|
811
944
|
/**
|
|
812
945
|
* The server provides moniker support.
|
|
813
946
|
*
|
|
@@ -817,21 +950,53 @@ export interface _ServerCapabilities<T = any> {
|
|
|
817
950
|
/**
|
|
818
951
|
* The server provides type hierarchy support.
|
|
819
952
|
*
|
|
820
|
-
* @since 3.17.0
|
|
953
|
+
* @since 3.17.0
|
|
954
|
+
* @proposed
|
|
821
955
|
*/
|
|
822
956
|
typeHierarchyProvider?: boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions;
|
|
823
957
|
/**
|
|
824
958
|
* The server provides inline values.
|
|
825
959
|
*
|
|
826
|
-
* @since 3.17.0
|
|
960
|
+
* @since 3.17.0
|
|
961
|
+
* @proposed
|
|
827
962
|
*/
|
|
828
|
-
|
|
963
|
+
inlineValueProvider?: boolean | InlineValueOptions | InlineValueRegistrationOptions;
|
|
964
|
+
/**
|
|
965
|
+
* The server provides inlay hints.
|
|
966
|
+
*
|
|
967
|
+
* @since 3.17.0
|
|
968
|
+
* @proposed
|
|
969
|
+
*/
|
|
970
|
+
inlayHintProvider?: boolean | InlayHintOptions | InlayHintRegistrationOptions;
|
|
971
|
+
/**
|
|
972
|
+
* The server has support for pull model diagnostics.
|
|
973
|
+
*
|
|
974
|
+
* @since 3.17.0
|
|
975
|
+
* @proposed
|
|
976
|
+
*/
|
|
977
|
+
diagnosticProvider?: DiagnosticOptions | DiagnosticRegistrationOptions;
|
|
978
|
+
/**
|
|
979
|
+
* Workspace specific server capabilities.
|
|
980
|
+
*/
|
|
981
|
+
workspace?: {
|
|
982
|
+
/**
|
|
983
|
+
* The server supports workspace folder.
|
|
984
|
+
*
|
|
985
|
+
* @since 3.6.0
|
|
986
|
+
*/
|
|
987
|
+
workspaceFolders?: WorkspaceFoldersServerCapabilities;
|
|
988
|
+
/**
|
|
989
|
+
* The server is interested in notifications/requests for operations on files.
|
|
990
|
+
*
|
|
991
|
+
* @since 3.16.0
|
|
992
|
+
*/
|
|
993
|
+
fileOperations?: FileOperationOptions;
|
|
994
|
+
};
|
|
829
995
|
/**
|
|
830
996
|
* Experimental server capabilities.
|
|
831
997
|
*/
|
|
832
998
|
experimental?: T;
|
|
833
999
|
}
|
|
834
|
-
export declare type ServerCapabilities<T = any> = _ServerCapabilities<T> & WorkspaceFoldersServerCapabilities;
|
|
835
1000
|
/**
|
|
836
1001
|
* The initialize request is sent from the client to the server.
|
|
837
1002
|
* It is sent once as the request after starting up the server.
|
|
@@ -840,7 +1005,7 @@ export declare type ServerCapabilities<T = any> = _ServerCapabilities<T> & Works
|
|
|
840
1005
|
* resolves to such.
|
|
841
1006
|
*/
|
|
842
1007
|
export declare namespace InitializeRequest {
|
|
843
|
-
const type: ProtocolRequestType<
|
|
1008
|
+
const type: ProtocolRequestType<InitializeParams, InitializeResult<any>, never, InitializeError, void>;
|
|
844
1009
|
}
|
|
845
1010
|
/**
|
|
846
1011
|
* The initialize parameters
|
|
@@ -935,16 +1100,18 @@ export interface InitializeResult<T = any> {
|
|
|
935
1100
|
[custom: string]: LSPAny | ServerCapabilities<T> | undefined; /** undefined is needed since serverInfo is optional */
|
|
936
1101
|
}
|
|
937
1102
|
/**
|
|
938
|
-
* Known error codes for an `
|
|
1103
|
+
* Known error codes for an `InitializeErrorCodes`;
|
|
939
1104
|
*/
|
|
940
|
-
export declare namespace
|
|
1105
|
+
export declare namespace InitializeErrorCodes {
|
|
941
1106
|
/**
|
|
942
1107
|
* If the protocol version provided by the client can't be handled by the server.
|
|
1108
|
+
*
|
|
943
1109
|
* @deprecated This initialize error got replaced by client capabilities. There is
|
|
944
1110
|
* no version handshake in version 3.0x
|
|
945
1111
|
*/
|
|
946
1112
|
const unknownProtocolVersion: 1;
|
|
947
1113
|
}
|
|
1114
|
+
export declare type InitializeErrorCodes = 1;
|
|
948
1115
|
/**
|
|
949
1116
|
* The data type of the ResponseError if the
|
|
950
1117
|
* initialize request fails.
|
|
@@ -1126,7 +1293,7 @@ export interface LogMessageParams {
|
|
|
1126
1293
|
* the client to log telemetry data.
|
|
1127
1294
|
*/
|
|
1128
1295
|
export declare namespace TelemetryEventNotification {
|
|
1129
|
-
const type: ProtocolNotificationType<
|
|
1296
|
+
const type: ProtocolNotificationType<LSPAny, void>;
|
|
1130
1297
|
}
|
|
1131
1298
|
export interface TextDocumentSyncClientCapabilities {
|
|
1132
1299
|
/**
|
|
@@ -1411,6 +1578,13 @@ export interface DidChangeWatchedFilesClientCapabilities {
|
|
|
1411
1578
|
* from the server side.
|
|
1412
1579
|
*/
|
|
1413
1580
|
dynamicRegistration?: boolean;
|
|
1581
|
+
/**
|
|
1582
|
+
* Whether the client has support for {@link RelativePattern relative pattern}
|
|
1583
|
+
* or not.
|
|
1584
|
+
*
|
|
1585
|
+
* @since 3.17.0
|
|
1586
|
+
*/
|
|
1587
|
+
relativePatternSupport?: boolean;
|
|
1414
1588
|
}
|
|
1415
1589
|
/**
|
|
1416
1590
|
* The watched files notification is sent from the client to the server when
|
|
@@ -1468,17 +1642,52 @@ export interface DidChangeWatchedFilesRegistrationOptions {
|
|
|
1468
1642
|
*/
|
|
1469
1643
|
watchers: FileSystemWatcher[];
|
|
1470
1644
|
}
|
|
1645
|
+
/**
|
|
1646
|
+
* The glob pattern to watch relative to the base path. Glob patterns can have the following syntax:
|
|
1647
|
+
* - `*` to match one or more characters in a path segment
|
|
1648
|
+
* - `?` to match on one character in a path segment
|
|
1649
|
+
* - `**` to match any number of path segments, including none
|
|
1650
|
+
* - `{}` to group conditions (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
|
|
1651
|
+
* - `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
|
|
1652
|
+
* - `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
|
|
1653
|
+
*
|
|
1654
|
+
* @since 3.17.0
|
|
1655
|
+
*/
|
|
1656
|
+
export declare type Pattern = string;
|
|
1657
|
+
/**
|
|
1658
|
+
* A relative pattern is a helper to construct glob patterns that are matched
|
|
1659
|
+
* relatively to a base URI. The common value for a `baseUri` is a workspace
|
|
1660
|
+
* folder root, but it can be another absolute URI as well.
|
|
1661
|
+
*
|
|
1662
|
+
* @since 3.17.0
|
|
1663
|
+
*/
|
|
1664
|
+
export interface RelativePattern {
|
|
1665
|
+
/**
|
|
1666
|
+
* A workspace folder or a base URI to which this pattern will be matched
|
|
1667
|
+
* against relatively.
|
|
1668
|
+
*/
|
|
1669
|
+
baseUri: WorkspaceFolder | URI;
|
|
1670
|
+
/**
|
|
1671
|
+
* The actual glob pattern;
|
|
1672
|
+
*/
|
|
1673
|
+
pattern: Pattern;
|
|
1674
|
+
}
|
|
1675
|
+
export declare namespace RelativePattern {
|
|
1676
|
+
function is(value: any): value is RelativePattern;
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* The glob pattern. Either a string pattern or a relative pattern.
|
|
1680
|
+
*
|
|
1681
|
+
* @since 3.17.0
|
|
1682
|
+
*/
|
|
1683
|
+
export declare type GlobPattern = Pattern | RelativePattern;
|
|
1471
1684
|
export interface FileSystemWatcher {
|
|
1472
1685
|
/**
|
|
1473
|
-
* The
|
|
1474
|
-
*
|
|
1475
|
-
*
|
|
1476
|
-
* - `**` to match any number of path segments, including none
|
|
1477
|
-
* - `{}` to group conditions (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
|
|
1478
|
-
* - `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
|
|
1479
|
-
* - `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
|
|
1686
|
+
* The glob pattern to watch. See {@link GlobPattern glob pattern} for more detail.
|
|
1687
|
+
*
|
|
1688
|
+
* @since 3.17.0 support for relative patterns.
|
|
1480
1689
|
*/
|
|
1481
|
-
globPattern:
|
|
1690
|
+
globPattern: GlobPattern;
|
|
1482
1691
|
/**
|
|
1483
1692
|
* The kind of events of interest. If omitted it defaults
|
|
1484
1693
|
* to WatchKind.Create | WatchKind.Change | WatchKind.Delete
|
|
@@ -1607,9 +1816,6 @@ export interface CompletionClientCapabilities {
|
|
|
1607
1816
|
* Client supports the preselect property on a completion item.
|
|
1608
1817
|
*/
|
|
1609
1818
|
preselectSupport?: boolean;
|
|
1610
|
-
/**
|
|
1611
|
-
* Client supports to kee
|
|
1612
|
-
*/
|
|
1613
1819
|
/**
|
|
1614
1820
|
* Client supports the tag property on a completion item. Clients supporting
|
|
1615
1821
|
* tags have to handle unknown tags gracefully. Clients especially need to
|
|
@@ -1658,7 +1864,8 @@ export interface CompletionClientCapabilities {
|
|
|
1658
1864
|
* The client has support for completion item label
|
|
1659
1865
|
* details (see also `CompletionItemLabelDetails`).
|
|
1660
1866
|
*
|
|
1661
|
-
* @since 3.17.0
|
|
1867
|
+
* @since 3.17.0
|
|
1868
|
+
* @proposed
|
|
1662
1869
|
*/
|
|
1663
1870
|
labelDetailsSupport?: boolean;
|
|
1664
1871
|
};
|
|
@@ -1680,7 +1887,8 @@ export interface CompletionClientCapabilities {
|
|
|
1680
1887
|
* when accepting a completion item that uses multi line
|
|
1681
1888
|
* text in either `insertText` or `textEdit`.
|
|
1682
1889
|
*
|
|
1683
|
-
* @since 3.17.0
|
|
1890
|
+
* @since 3.17.0
|
|
1891
|
+
* @proposed
|
|
1684
1892
|
*/
|
|
1685
1893
|
insertTextMode?: InsertTextMode;
|
|
1686
1894
|
/**
|
|
@@ -1692,7 +1900,8 @@ export interface CompletionClientCapabilities {
|
|
|
1692
1900
|
* The client supports the following `CompletionList` specific
|
|
1693
1901
|
* capabilities.
|
|
1694
1902
|
*
|
|
1695
|
-
* @since 3.17.0
|
|
1903
|
+
* @since 3.17.0
|
|
1904
|
+
* @proposed
|
|
1696
1905
|
*/
|
|
1697
1906
|
completionList?: {
|
|
1698
1907
|
/**
|
|
@@ -1703,7 +1912,8 @@ export interface CompletionClientCapabilities {
|
|
|
1703
1912
|
* `CompletionList.itemDefaults` object. If omitted
|
|
1704
1913
|
* no properties are supported.
|
|
1705
1914
|
*
|
|
1706
|
-
* @since 3.17.0
|
|
1915
|
+
* @since 3.17.0
|
|
1916
|
+
* @proposed
|
|
1707
1917
|
*/
|
|
1708
1918
|
itemDefaults?: string[];
|
|
1709
1919
|
};
|
|
@@ -1787,7 +1997,8 @@ export interface CompletionOptions extends WorkDoneProgressOptions {
|
|
|
1787
1997
|
* The server supports the following `CompletionItem` specific
|
|
1788
1998
|
* capabilities.
|
|
1789
1999
|
*
|
|
1790
|
-
* @since 3.17.0
|
|
2000
|
+
* @since 3.17.0
|
|
2001
|
+
* @proposed
|
|
1791
2002
|
*/
|
|
1792
2003
|
completionItem?: {
|
|
1793
2004
|
/**
|
|
@@ -1795,7 +2006,8 @@ export interface CompletionOptions extends WorkDoneProgressOptions {
|
|
|
1795
2006
|
* details (see also `CompletionItemLabelDetails`) when
|
|
1796
2007
|
* receiving a completion item in a resolve call.
|
|
1797
2008
|
*
|
|
1798
|
-
* @since 3.17.0
|
|
2009
|
+
* @since 3.17.0
|
|
2010
|
+
* @proposed
|
|
1799
2011
|
*/
|
|
1800
2012
|
labelDetailsSupport?: boolean;
|
|
1801
2013
|
};
|
|
@@ -2368,7 +2580,8 @@ export interface WorkspaceSymbolClientCapabilities {
|
|
|
2368
2580
|
* request `workspaceSymbol/resolve` to the server to resolve additional
|
|
2369
2581
|
* properties.
|
|
2370
2582
|
*
|
|
2371
|
-
* @since 3.17.0
|
|
2583
|
+
* @since 3.17.0
|
|
2584
|
+
* @proposed
|
|
2372
2585
|
*/
|
|
2373
2586
|
resolveSupport?: {
|
|
2374
2587
|
/**
|
|
@@ -2396,7 +2609,8 @@ export interface WorkspaceSymbolOptions extends WorkDoneProgressOptions {
|
|
|
2396
2609
|
* The server provides support to resolve additional
|
|
2397
2610
|
* information for a workspace symbol.
|
|
2398
2611
|
*
|
|
2399
|
-
* @since 3.17.0
|
|
2612
|
+
* @since 3.17.0
|
|
2613
|
+
* @proposed
|
|
2400
2614
|
*/
|
|
2401
2615
|
resolveProvider?: boolean;
|
|
2402
2616
|
}
|
|
@@ -2424,7 +2638,8 @@ export declare namespace WorkspaceSymbolRequest {
|
|
|
2424
2638
|
* A request to resolve the range inside the workspace
|
|
2425
2639
|
* symbol's location.
|
|
2426
2640
|
*
|
|
2427
|
-
* @since 3.17.0
|
|
2641
|
+
* @since 3.17.0
|
|
2642
|
+
* @proposed
|
|
2428
2643
|
*/
|
|
2429
2644
|
export declare namespace WorkspaceSymbolResolveRequest {
|
|
2430
2645
|
const method: 'workspaceSymbol/resolve';
|
|
@@ -2654,11 +2869,16 @@ export interface DocumentOnTypeFormattingParams {
|
|
|
2654
2869
|
*/
|
|
2655
2870
|
textDocument: TextDocumentIdentifier;
|
|
2656
2871
|
/**
|
|
2657
|
-
* The position
|
|
2872
|
+
* The position around which the on type formatting should happen.
|
|
2873
|
+
* This is not necessarily the exact position where the character denoted
|
|
2874
|
+
* by the property `ch` got typed.
|
|
2658
2875
|
*/
|
|
2659
2876
|
position: Position;
|
|
2660
2877
|
/**
|
|
2661
|
-
* The character that has been typed
|
|
2878
|
+
* The character that has been typed that triggered the formatting
|
|
2879
|
+
* on type request. That is not necessarily the last character that
|
|
2880
|
+
* got inserted into the document since the client could auto insert
|
|
2881
|
+
* characters as well (e.g. like automatic brace completion).
|
|
2662
2882
|
*/
|
|
2663
2883
|
ch: string;
|
|
2664
2884
|
/**
|
|
@@ -2671,7 +2891,7 @@ export interface DocumentOnTypeFormattingParams {
|
|
|
2671
2891
|
*/
|
|
2672
2892
|
export interface DocumentOnTypeFormattingOptions {
|
|
2673
2893
|
/**
|
|
2674
|
-
* A character on which formatting should be triggered, like `}`.
|
|
2894
|
+
* A character on which formatting should be triggered, like `{}`.
|
|
2675
2895
|
*/
|
|
2676
2896
|
firstTriggerCharacter: string;
|
|
2677
2897
|
/**
|
|
@@ -2775,6 +2995,12 @@ export declare namespace RenameRequest {
|
|
|
2775
2995
|
}
|
|
2776
2996
|
export interface PrepareRenameParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
2777
2997
|
}
|
|
2998
|
+
export declare type PrepareRenameResult = Range | {
|
|
2999
|
+
range: Range;
|
|
3000
|
+
placeholder: string;
|
|
3001
|
+
} | {
|
|
3002
|
+
defaultBehavior: boolean;
|
|
3003
|
+
};
|
|
2778
3004
|
/**
|
|
2779
3005
|
* A request to test and perform the setup necessary for a rename.
|
|
2780
3006
|
*
|
|
@@ -2782,12 +3008,7 @@ export interface PrepareRenameParams extends TextDocumentPositionParams, WorkDon
|
|
|
2782
3008
|
*/
|
|
2783
3009
|
export declare namespace PrepareRenameRequest {
|
|
2784
3010
|
const method: 'textDocument/prepareRename';
|
|
2785
|
-
const type: ProtocolRequestType<PrepareRenameParams,
|
|
2786
|
-
range: Range;
|
|
2787
|
-
placeholder: string;
|
|
2788
|
-
} | {
|
|
2789
|
-
defaultBehavior: boolean;
|
|
2790
|
-
} | null, never, void, void>;
|
|
3011
|
+
const type: ProtocolRequestType<PrepareRenameParams, PrepareRenameResult | null, never, void, void>;
|
|
2791
3012
|
}
|
|
2792
3013
|
/**
|
|
2793
3014
|
* The client capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
|
|
@@ -2830,7 +3051,7 @@ export interface ExecuteCommandRegistrationOptions extends ExecuteCommandOptions
|
|
|
2830
3051
|
* a workspace edit which the client will apply to the workspace.
|
|
2831
3052
|
*/
|
|
2832
3053
|
export declare namespace ExecuteCommandRequest {
|
|
2833
|
-
const type: ProtocolRequestType<ExecuteCommandParams,
|
|
3054
|
+
const type: ProtocolRequestType<ExecuteCommandParams, LSPAny, never, void, ExecuteCommandRegistrationOptions>;
|
|
2834
3055
|
}
|
|
2835
3056
|
export interface WorkspaceEditClientCapabilities {
|
|
2836
3057
|
/**
|
|
@@ -2924,5 +3145,5 @@ export declare type ApplyWorkspaceEditResponse = ApplyWorkspaceEditResult;
|
|
|
2924
3145
|
export declare namespace ApplyWorkspaceEditRequest {
|
|
2925
3146
|
const type: ProtocolRequestType<ApplyWorkspaceEditParams, ApplyWorkspaceEditResult, never, void, void>;
|
|
2926
3147
|
}
|
|
2927
|
-
export { ImplementationRequest, ImplementationParams, ImplementationRegistrationOptions, ImplementationOptions, TypeDefinitionRequest, TypeDefinitionParams, TypeDefinitionRegistrationOptions, TypeDefinitionOptions, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams,
|
|
3148
|
+
export { ImplementationRequest, ImplementationParams, ImplementationRegistrationOptions, ImplementationOptions, TypeDefinitionRequest, TypeDefinitionParams, TypeDefinitionRegistrationOptions, TypeDefinitionOptions, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorRegistrationOptions, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions, DeclarationClientCapabilities, DeclarationRequest, DeclarationParams, DeclarationRegistrationOptions, DeclarationOptions, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest, SelectionRangeRegistrationOptions, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification, CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest, SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensRegistrationType, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, ShowDocumentClientCapabilities, LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest, FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest, UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest, TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions, TypeHierarchyPrepareParams, TypeHierarchyPrepareRequest, TypeHierarchySubtypesParams, TypeHierarchySubtypesRequest, TypeHierarchySupertypesParams, TypeHierarchySupertypesRequest, InlineValueClientCapabilities, InlineValueOptions, InlineValueRegistrationOptions, InlineValueWorkspaceClientCapabilities, InlineValueParams, InlineValueRequest, InlineValueRefreshRequest, InlayHintClientCapabilities, InlayHintOptions, InlayHintRegistrationOptions, InlayHintWorkspaceClientCapabilities, InlayHintParams, InlayHintRequest, InlayHintResolveRequest, InlayHintRefreshRequest, DiagnosticClientCapabilities, DiagnosticOptions, DiagnosticRegistrationOptions, DiagnosticServerCancellationData, DocumentDiagnosticParams, DocumentDiagnosticReportKind, FullDocumentDiagnosticReport, RelatedFullDocumentDiagnosticReport, UnchangedDocumentDiagnosticReport, RelatedUnchangedDocumentDiagnosticReport, DocumentDiagnosticReport, DocumentDiagnosticReportPartialResult, DocumentDiagnosticRequest, PreviousResultId, WorkspaceDiagnosticParams, WorkspaceFullDocumentDiagnosticReport, WorkspaceUnchangedDocumentDiagnosticReport, WorkspaceDocumentDiagnosticReport, WorkspaceDiagnosticReport, WorkspaceDiagnosticReportPartialResult, WorkspaceDiagnosticRequest, DiagnosticRefreshRequest, NotebookDocumentSyncClientCapabilities, NotebookCellKind, ExecutionSummary, NotebookCell, NotebookDocument, NotebookDocumentIdentifier, VersionedNotebookDocumentIdentifier, NotebookDocumentSyncOptions, NotebookDocumentSyncRegistrationOptions, NotebookDocumentSyncRegistrationType, DidOpenNotebookDocumentParams, DidOpenNotebookDocumentNotification, NotebookCellArrayChange, NotebookDocumentChangeEvent, DidChangeNotebookDocumentParams, DidChangeNotebookDocumentNotification, DidSaveNotebookDocumentParams, DidSaveNotebookDocumentNotification, DidCloseNotebookDocumentParams, DidCloseNotebookDocumentNotification };
|
|
2928
3149
|
export { DocumentColorOptions as ColorProviderOptions, DocumentColorOptions as ColorOptions, FoldingRangeOptions as FoldingRangeProviderOptions, SelectionRangeOptions as SelectionRangeProviderOptions, DocumentColorRegistrationOptions as ColorRegistrationOptions };
|