@lspeasy/core 2.3.0 → 2.4.0
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/dist/discover.d.ts +40 -0
- package/dist/discover.d.ts.map +1 -1
- package/dist/discover.js +41 -0
- package/dist/discover.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/protocol/capabilities.d.ts +1 -1
- package/dist/protocol/capabilities.d.ts.map +1 -1
- package/dist/protocol/enums.d.ts +374 -329
- package/dist/protocol/enums.d.ts.map +1 -1
- package/dist/protocol/enums.js +334 -369
- package/dist/protocol/enums.js.map +1 -1
- package/dist/protocol/infer.d.ts +1 -1
- package/dist/protocol/infer.d.ts.map +1 -1
- package/dist/protocol/namespaces.d.ts +8 -5
- package/dist/protocol/namespaces.d.ts.map +1 -1
- package/dist/protocol/namespaces.js +6 -2
- package/dist/protocol/namespaces.js.map +1 -1
- package/dist/protocol/partial.d.ts +1 -1
- package/dist/protocol/partial.d.ts.map +1 -1
- package/dist/protocol/progress.d.ts +1 -1
- package/dist/protocol/progress.d.ts.map +1 -1
- package/dist/protocol/schemas.d.ts +135 -54
- package/dist/protocol/schemas.d.ts.map +1 -1
- package/dist/protocol/schemas.js +11 -8
- package/dist/protocol/schemas.js.map +1 -1
- package/dist/protocol/types.d.ts +1899 -9
- package/dist/protocol/types.d.ts.map +1 -1
- package/dist/protocol/types.js +5 -2
- package/dist/protocol/types.js.map +1 -1
- package/dist/protocol/watching.d.ts +1 -1
- package/dist/protocol/watching.d.ts.map +1 -1
- package/dist/protocol/workspace.d.ts +1 -1
- package/dist/protocol/workspace.d.ts.map +1 -1
- package/dist/utils/document.d.ts +1 -1
- package/dist/utils/document.d.ts.map +1 -1
- package/package.json +2 -3
package/dist/protocol/types.d.ts
CHANGED
|
@@ -1,19 +1,1909 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* LSP Protocol Types
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Generated directly from metaModel.json — not inferred from Zod schemas.
|
|
5
|
+
* Optional properties use `prop?: T` (no `| undefined`) so these types are
|
|
6
|
+
* compatible with packages compiled with exactOptionalPropertyTypes: true.
|
|
7
|
+
*
|
|
8
|
+
* Auto-generated — DO NOT EDIT MANUALLY
|
|
6
9
|
*/
|
|
7
|
-
export type * from '
|
|
8
|
-
export type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
export type * from './enums.js';
|
|
11
|
+
export type ImplementationParams = {
|
|
12
|
+
textDocument: TextDocumentIdentifier;
|
|
13
|
+
position: Position;
|
|
14
|
+
workDoneToken?: ProgressToken;
|
|
15
|
+
partialResultToken?: ProgressToken;
|
|
16
|
+
};
|
|
17
|
+
export type Location = {
|
|
18
|
+
uri: string;
|
|
19
|
+
range: Range;
|
|
20
|
+
};
|
|
21
|
+
export type ImplementationRegistrationOptions = {
|
|
22
|
+
documentSelector: DocumentSelector | null;
|
|
23
|
+
workDoneProgress?: boolean;
|
|
24
|
+
id?: string;
|
|
25
|
+
};
|
|
26
|
+
export type TypeDefinitionParams = {
|
|
27
|
+
textDocument: TextDocumentIdentifier;
|
|
28
|
+
position: Position;
|
|
29
|
+
workDoneToken?: ProgressToken;
|
|
30
|
+
partialResultToken?: ProgressToken;
|
|
31
|
+
};
|
|
32
|
+
export type TypeDefinitionRegistrationOptions = {
|
|
33
|
+
documentSelector: DocumentSelector | null;
|
|
34
|
+
workDoneProgress?: boolean;
|
|
35
|
+
id?: string;
|
|
36
|
+
};
|
|
37
|
+
export type WorkspaceFolder = {
|
|
38
|
+
uri: string;
|
|
39
|
+
name: string;
|
|
40
|
+
};
|
|
41
|
+
export type DidChangeWorkspaceFoldersParams = {
|
|
42
|
+
event: WorkspaceFoldersChangeEvent;
|
|
43
|
+
};
|
|
44
|
+
export type ConfigurationParams = {
|
|
45
|
+
items: ConfigurationItem[];
|
|
46
|
+
};
|
|
47
|
+
export type DocumentColorParams = {
|
|
48
|
+
workDoneToken?: ProgressToken;
|
|
49
|
+
partialResultToken?: ProgressToken;
|
|
50
|
+
textDocument: TextDocumentIdentifier;
|
|
51
|
+
};
|
|
52
|
+
export type ColorInformation = {
|
|
53
|
+
range: Range;
|
|
54
|
+
color: Color;
|
|
55
|
+
};
|
|
56
|
+
export type DocumentColorRegistrationOptions = {
|
|
57
|
+
documentSelector: DocumentSelector | null;
|
|
58
|
+
workDoneProgress?: boolean;
|
|
59
|
+
id?: string;
|
|
60
|
+
};
|
|
61
|
+
export type ColorPresentationParams = {
|
|
62
|
+
workDoneToken?: ProgressToken;
|
|
63
|
+
partialResultToken?: ProgressToken;
|
|
64
|
+
textDocument: TextDocumentIdentifier;
|
|
65
|
+
color: Color;
|
|
66
|
+
range: Range;
|
|
67
|
+
};
|
|
68
|
+
export type ColorPresentation = {
|
|
69
|
+
label: string;
|
|
70
|
+
textEdit?: TextEdit;
|
|
71
|
+
additionalTextEdits?: TextEdit[];
|
|
72
|
+
};
|
|
73
|
+
export type WorkDoneProgressOptions = {
|
|
74
|
+
workDoneProgress?: boolean;
|
|
75
|
+
};
|
|
76
|
+
export type TextDocumentRegistrationOptions = {
|
|
77
|
+
documentSelector: DocumentSelector | null;
|
|
78
|
+
};
|
|
79
|
+
export type FoldingRangeParams = {
|
|
80
|
+
workDoneToken?: ProgressToken;
|
|
81
|
+
partialResultToken?: ProgressToken;
|
|
82
|
+
textDocument: TextDocumentIdentifier;
|
|
83
|
+
};
|
|
84
|
+
export type FoldingRange = {
|
|
85
|
+
startLine: number;
|
|
86
|
+
startCharacter?: number;
|
|
87
|
+
endLine: number;
|
|
88
|
+
endCharacter?: number;
|
|
89
|
+
kind?: 'comment' | 'imports' | 'region' | string;
|
|
90
|
+
collapsedText?: string;
|
|
91
|
+
};
|
|
92
|
+
export type FoldingRangeRegistrationOptions = {
|
|
93
|
+
documentSelector: DocumentSelector | null;
|
|
94
|
+
workDoneProgress?: boolean;
|
|
95
|
+
id?: string;
|
|
96
|
+
};
|
|
97
|
+
export type DeclarationParams = {
|
|
98
|
+
textDocument: TextDocumentIdentifier;
|
|
99
|
+
position: Position;
|
|
100
|
+
workDoneToken?: ProgressToken;
|
|
101
|
+
partialResultToken?: ProgressToken;
|
|
102
|
+
};
|
|
103
|
+
export type DeclarationRegistrationOptions = {
|
|
104
|
+
workDoneProgress?: boolean;
|
|
105
|
+
documentSelector: DocumentSelector | null;
|
|
106
|
+
id?: string;
|
|
107
|
+
};
|
|
108
|
+
export type SelectionRangeParams = {
|
|
109
|
+
workDoneToken?: ProgressToken;
|
|
110
|
+
partialResultToken?: ProgressToken;
|
|
111
|
+
textDocument: TextDocumentIdentifier;
|
|
112
|
+
positions: Position[];
|
|
113
|
+
};
|
|
114
|
+
export type SelectionRange = {
|
|
115
|
+
range: Range;
|
|
116
|
+
parent?: SelectionRange;
|
|
117
|
+
};
|
|
118
|
+
export type SelectionRangeRegistrationOptions = {
|
|
119
|
+
workDoneProgress?: boolean;
|
|
120
|
+
documentSelector: DocumentSelector | null;
|
|
121
|
+
id?: string;
|
|
122
|
+
};
|
|
123
|
+
export type WorkDoneProgressCreateParams = {
|
|
124
|
+
token: ProgressToken;
|
|
125
|
+
};
|
|
126
|
+
export type WorkDoneProgressCancelParams = {
|
|
127
|
+
token: ProgressToken;
|
|
128
|
+
};
|
|
129
|
+
export type CallHierarchyPrepareParams = {
|
|
130
|
+
textDocument: TextDocumentIdentifier;
|
|
131
|
+
position: Position;
|
|
132
|
+
workDoneToken?: ProgressToken;
|
|
133
|
+
};
|
|
134
|
+
export type CallHierarchyItem = {
|
|
135
|
+
name: string;
|
|
136
|
+
kind: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26;
|
|
137
|
+
tags?: 1[];
|
|
138
|
+
detail?: string;
|
|
139
|
+
uri: string;
|
|
140
|
+
range: Range;
|
|
141
|
+
selectionRange: Range;
|
|
142
|
+
data?: LSPAny;
|
|
143
|
+
};
|
|
144
|
+
export type CallHierarchyRegistrationOptions = {
|
|
145
|
+
documentSelector: DocumentSelector | null;
|
|
146
|
+
workDoneProgress?: boolean;
|
|
147
|
+
id?: string;
|
|
148
|
+
};
|
|
149
|
+
export type CallHierarchyIncomingCallsParams = {
|
|
150
|
+
workDoneToken?: ProgressToken;
|
|
151
|
+
partialResultToken?: ProgressToken;
|
|
152
|
+
item: CallHierarchyItem;
|
|
153
|
+
};
|
|
154
|
+
export type CallHierarchyIncomingCall = {
|
|
155
|
+
from: CallHierarchyItem;
|
|
156
|
+
fromRanges: Range[];
|
|
157
|
+
};
|
|
158
|
+
export type CallHierarchyOutgoingCallsParams = {
|
|
159
|
+
workDoneToken?: ProgressToken;
|
|
160
|
+
partialResultToken?: ProgressToken;
|
|
161
|
+
item: CallHierarchyItem;
|
|
162
|
+
};
|
|
163
|
+
export type CallHierarchyOutgoingCall = {
|
|
164
|
+
to: CallHierarchyItem;
|
|
165
|
+
fromRanges: Range[];
|
|
166
|
+
};
|
|
167
|
+
export type SemanticTokensParams = {
|
|
168
|
+
workDoneToken?: ProgressToken;
|
|
169
|
+
partialResultToken?: ProgressToken;
|
|
170
|
+
textDocument: TextDocumentIdentifier;
|
|
171
|
+
};
|
|
172
|
+
export type SemanticTokens = {
|
|
173
|
+
resultId?: string;
|
|
174
|
+
data: number[];
|
|
175
|
+
};
|
|
176
|
+
export type SemanticTokensPartialResult = {
|
|
177
|
+
data: number[];
|
|
178
|
+
};
|
|
179
|
+
export type SemanticTokensRegistrationOptions = {
|
|
180
|
+
documentSelector: DocumentSelector | null;
|
|
181
|
+
workDoneProgress?: boolean;
|
|
182
|
+
legend: SemanticTokensLegend;
|
|
183
|
+
range?: boolean | {};
|
|
184
|
+
full?: boolean | SemanticTokensFullDelta;
|
|
185
|
+
id?: string;
|
|
186
|
+
};
|
|
187
|
+
export type SemanticTokensDeltaParams = {
|
|
188
|
+
workDoneToken?: ProgressToken;
|
|
189
|
+
partialResultToken?: ProgressToken;
|
|
190
|
+
textDocument: TextDocumentIdentifier;
|
|
191
|
+
previousResultId: string;
|
|
192
|
+
};
|
|
193
|
+
export type SemanticTokensDelta = {
|
|
194
|
+
resultId?: string;
|
|
195
|
+
edits: SemanticTokensEdit[];
|
|
196
|
+
};
|
|
197
|
+
export type SemanticTokensDeltaPartialResult = {
|
|
198
|
+
edits: SemanticTokensEdit[];
|
|
199
|
+
};
|
|
200
|
+
export type SemanticTokensRangeParams = {
|
|
201
|
+
workDoneToken?: ProgressToken;
|
|
202
|
+
partialResultToken?: ProgressToken;
|
|
203
|
+
textDocument: TextDocumentIdentifier;
|
|
204
|
+
range: Range;
|
|
205
|
+
};
|
|
206
|
+
export type ShowDocumentParams = {
|
|
207
|
+
uri: string;
|
|
208
|
+
external?: boolean;
|
|
209
|
+
takeFocus?: boolean;
|
|
210
|
+
selection?: Range;
|
|
211
|
+
};
|
|
212
|
+
export type ShowDocumentResult = {
|
|
213
|
+
success: boolean;
|
|
214
|
+
};
|
|
215
|
+
export type LinkedEditingRangeParams = {
|
|
216
|
+
textDocument: TextDocumentIdentifier;
|
|
217
|
+
position: Position;
|
|
218
|
+
workDoneToken?: ProgressToken;
|
|
219
|
+
};
|
|
220
|
+
export type LinkedEditingRanges = {
|
|
221
|
+
ranges: Range[];
|
|
222
|
+
wordPattern?: string;
|
|
223
|
+
};
|
|
224
|
+
export type LinkedEditingRangeRegistrationOptions = {
|
|
225
|
+
documentSelector: DocumentSelector | null;
|
|
226
|
+
workDoneProgress?: boolean;
|
|
227
|
+
id?: string;
|
|
228
|
+
};
|
|
229
|
+
export type CreateFilesParams = {
|
|
230
|
+
files: FileCreate[];
|
|
231
|
+
};
|
|
232
|
+
export type WorkspaceEdit = {
|
|
233
|
+
changes?: {
|
|
234
|
+
[key: string]: TextEdit[];
|
|
235
|
+
};
|
|
236
|
+
documentChanges?: (TextDocumentEdit | CreateFile | RenameFile | DeleteFile)[];
|
|
237
|
+
changeAnnotations?: Record<ChangeAnnotationIdentifier, ChangeAnnotation>;
|
|
238
|
+
};
|
|
239
|
+
export type FileOperationRegistrationOptions = {
|
|
240
|
+
filters: FileOperationFilter[];
|
|
241
|
+
};
|
|
242
|
+
export type RenameFilesParams = {
|
|
243
|
+
files: FileRename[];
|
|
244
|
+
};
|
|
245
|
+
export type DeleteFilesParams = {
|
|
246
|
+
files: FileDelete[];
|
|
247
|
+
};
|
|
248
|
+
export type MonikerParams = {
|
|
249
|
+
textDocument: TextDocumentIdentifier;
|
|
250
|
+
position: Position;
|
|
251
|
+
workDoneToken?: ProgressToken;
|
|
252
|
+
partialResultToken?: ProgressToken;
|
|
253
|
+
};
|
|
254
|
+
export type Moniker = {
|
|
255
|
+
scheme: string;
|
|
256
|
+
identifier: string;
|
|
257
|
+
unique: 'document' | 'project' | 'group' | 'scheme' | 'global';
|
|
258
|
+
kind?: 'import' | 'export' | 'local';
|
|
259
|
+
};
|
|
260
|
+
export type MonikerRegistrationOptions = {
|
|
261
|
+
documentSelector: DocumentSelector | null;
|
|
262
|
+
workDoneProgress?: boolean;
|
|
263
|
+
};
|
|
264
|
+
export type TypeHierarchyPrepareParams = {
|
|
265
|
+
textDocument: TextDocumentIdentifier;
|
|
266
|
+
position: Position;
|
|
267
|
+
workDoneToken?: ProgressToken;
|
|
268
|
+
};
|
|
269
|
+
export type TypeHierarchyItem = {
|
|
270
|
+
name: string;
|
|
271
|
+
kind: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26;
|
|
272
|
+
tags?: 1[];
|
|
273
|
+
detail?: string;
|
|
274
|
+
uri: string;
|
|
275
|
+
range: Range;
|
|
276
|
+
selectionRange: Range;
|
|
277
|
+
data?: LSPAny;
|
|
278
|
+
};
|
|
279
|
+
export type TypeHierarchyRegistrationOptions = {
|
|
280
|
+
documentSelector: DocumentSelector | null;
|
|
281
|
+
workDoneProgress?: boolean;
|
|
282
|
+
id?: string;
|
|
283
|
+
};
|
|
284
|
+
export type TypeHierarchySupertypesParams = {
|
|
285
|
+
workDoneToken?: ProgressToken;
|
|
286
|
+
partialResultToken?: ProgressToken;
|
|
287
|
+
item: TypeHierarchyItem;
|
|
288
|
+
};
|
|
289
|
+
export type TypeHierarchySubtypesParams = {
|
|
290
|
+
workDoneToken?: ProgressToken;
|
|
291
|
+
partialResultToken?: ProgressToken;
|
|
292
|
+
item: TypeHierarchyItem;
|
|
293
|
+
};
|
|
294
|
+
export type InlineValueParams = {
|
|
295
|
+
workDoneToken?: ProgressToken;
|
|
296
|
+
textDocument: TextDocumentIdentifier;
|
|
297
|
+
range: Range;
|
|
298
|
+
context: InlineValueContext;
|
|
299
|
+
};
|
|
300
|
+
export type InlineValueRegistrationOptions = {
|
|
301
|
+
workDoneProgress?: boolean;
|
|
302
|
+
documentSelector: DocumentSelector | null;
|
|
303
|
+
id?: string;
|
|
304
|
+
};
|
|
305
|
+
export type InlayHintParams = {
|
|
306
|
+
workDoneToken?: ProgressToken;
|
|
307
|
+
textDocument: TextDocumentIdentifier;
|
|
308
|
+
range: Range;
|
|
309
|
+
};
|
|
310
|
+
export type InlayHint = {
|
|
311
|
+
position: Position;
|
|
312
|
+
label: string | InlayHintLabelPart[];
|
|
313
|
+
kind?: 1 | 2;
|
|
314
|
+
textEdits?: TextEdit[];
|
|
315
|
+
tooltip?: string | MarkupContent;
|
|
316
|
+
paddingLeft?: boolean;
|
|
317
|
+
paddingRight?: boolean;
|
|
318
|
+
data?: LSPAny;
|
|
319
|
+
};
|
|
320
|
+
export type InlayHintRegistrationOptions = {
|
|
321
|
+
workDoneProgress?: boolean;
|
|
322
|
+
resolveProvider?: boolean;
|
|
323
|
+
documentSelector: DocumentSelector | null;
|
|
324
|
+
id?: string;
|
|
325
|
+
};
|
|
326
|
+
export type DocumentDiagnosticParams = {
|
|
327
|
+
workDoneToken?: ProgressToken;
|
|
328
|
+
partialResultToken?: ProgressToken;
|
|
329
|
+
textDocument: TextDocumentIdentifier;
|
|
330
|
+
identifier?: string;
|
|
331
|
+
previousResultId?: string;
|
|
332
|
+
};
|
|
333
|
+
export type DocumentDiagnosticReportPartialResult = {
|
|
334
|
+
relatedDocuments: {
|
|
335
|
+
[key: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
export type DiagnosticServerCancellationData = {
|
|
339
|
+
retriggerRequest: boolean;
|
|
340
|
+
};
|
|
341
|
+
export type DiagnosticRegistrationOptions = {
|
|
342
|
+
documentSelector: DocumentSelector | null;
|
|
343
|
+
workDoneProgress?: boolean;
|
|
344
|
+
identifier?: string;
|
|
345
|
+
interFileDependencies: boolean;
|
|
346
|
+
workspaceDiagnostics: boolean;
|
|
347
|
+
id?: string;
|
|
348
|
+
};
|
|
349
|
+
export type WorkspaceDiagnosticParams = {
|
|
350
|
+
workDoneToken?: ProgressToken;
|
|
351
|
+
partialResultToken?: ProgressToken;
|
|
352
|
+
identifier?: string;
|
|
353
|
+
previousResultIds: PreviousResultId[];
|
|
354
|
+
};
|
|
355
|
+
export type WorkspaceDiagnosticReport = {
|
|
356
|
+
items: WorkspaceDocumentDiagnosticReport[];
|
|
357
|
+
};
|
|
358
|
+
export type WorkspaceDiagnosticReportPartialResult = {
|
|
359
|
+
items: WorkspaceDocumentDiagnosticReport[];
|
|
360
|
+
};
|
|
361
|
+
export type DidOpenNotebookDocumentParams = {
|
|
362
|
+
notebookDocument: NotebookDocument;
|
|
363
|
+
cellTextDocuments: TextDocumentItem[];
|
|
364
|
+
};
|
|
365
|
+
export type NotebookDocumentSyncRegistrationOptions = {
|
|
366
|
+
notebookSelector: (NotebookDocumentFilterWithNotebook | NotebookDocumentFilterWithCells)[];
|
|
367
|
+
save?: boolean;
|
|
368
|
+
id?: string;
|
|
369
|
+
};
|
|
370
|
+
export type DidChangeNotebookDocumentParams = {
|
|
371
|
+
notebookDocument: VersionedNotebookDocumentIdentifier;
|
|
372
|
+
change: NotebookDocumentChangeEvent;
|
|
373
|
+
};
|
|
374
|
+
export type DidSaveNotebookDocumentParams = {
|
|
375
|
+
notebookDocument: NotebookDocumentIdentifier;
|
|
376
|
+
};
|
|
377
|
+
export type DidCloseNotebookDocumentParams = {
|
|
378
|
+
notebookDocument: NotebookDocumentIdentifier;
|
|
379
|
+
cellTextDocuments: TextDocumentIdentifier[];
|
|
380
|
+
};
|
|
381
|
+
export type InlineCompletionParams = {
|
|
382
|
+
textDocument: TextDocumentIdentifier;
|
|
383
|
+
position: Position;
|
|
384
|
+
workDoneToken?: ProgressToken;
|
|
385
|
+
context: InlineCompletionContext;
|
|
386
|
+
};
|
|
387
|
+
export type InlineCompletionList = {
|
|
388
|
+
items: InlineCompletionItem[];
|
|
389
|
+
};
|
|
390
|
+
export type InlineCompletionItem = {
|
|
391
|
+
insertText: string | StringValue;
|
|
392
|
+
filterText?: string;
|
|
393
|
+
range?: Range;
|
|
394
|
+
command?: Command;
|
|
395
|
+
};
|
|
396
|
+
export type InlineCompletionRegistrationOptions = {
|
|
397
|
+
workDoneProgress?: boolean;
|
|
398
|
+
documentSelector: DocumentSelector | null;
|
|
399
|
+
id?: string;
|
|
400
|
+
};
|
|
401
|
+
export type TextDocumentContentParams = {
|
|
402
|
+
uri: string;
|
|
403
|
+
};
|
|
404
|
+
export type TextDocumentContentResult = {
|
|
405
|
+
text: string;
|
|
406
|
+
};
|
|
407
|
+
export type TextDocumentContentRegistrationOptions = {
|
|
408
|
+
schemes: string[];
|
|
409
|
+
id?: string;
|
|
410
|
+
};
|
|
411
|
+
export type TextDocumentContentRefreshParams = {
|
|
412
|
+
uri: string;
|
|
413
|
+
};
|
|
414
|
+
export type RegistrationParams = {
|
|
415
|
+
registrations: Registration[];
|
|
416
|
+
};
|
|
417
|
+
export type UnregistrationParams = {
|
|
418
|
+
unregisterations: Unregistration[];
|
|
419
|
+
};
|
|
420
|
+
export type InitializeParams = {
|
|
421
|
+
workDoneToken?: ProgressToken;
|
|
422
|
+
processId: number | null;
|
|
423
|
+
clientInfo?: ClientInfo;
|
|
424
|
+
locale?: string;
|
|
425
|
+
rootPath?: string | null;
|
|
426
|
+
rootUri: string | null;
|
|
427
|
+
capabilities: ClientCapabilities;
|
|
428
|
+
initializationOptions?: LSPAny;
|
|
429
|
+
trace?: 'off' | 'messages' | 'compact' | 'verbose';
|
|
430
|
+
workspaceFolders?: WorkspaceFolder[] | null;
|
|
431
|
+
};
|
|
432
|
+
export type InitializeResult = {
|
|
433
|
+
capabilities: ServerCapabilities;
|
|
434
|
+
serverInfo?: ServerInfo;
|
|
435
|
+
};
|
|
436
|
+
export type InitializeError = {
|
|
437
|
+
retry: boolean;
|
|
438
|
+
};
|
|
439
|
+
export type InitializedParams = {};
|
|
440
|
+
export type DidChangeConfigurationParams = {
|
|
441
|
+
settings: LSPAny;
|
|
442
|
+
};
|
|
443
|
+
export type DidChangeConfigurationRegistrationOptions = {
|
|
444
|
+
section?: string | string[];
|
|
445
|
+
};
|
|
446
|
+
export type ShowMessageParams = {
|
|
447
|
+
type: 1 | 2 | 3 | 4 | 5;
|
|
448
|
+
message: string;
|
|
449
|
+
};
|
|
450
|
+
export type ShowMessageRequestParams = {
|
|
451
|
+
type: 1 | 2 | 3 | 4 | 5;
|
|
452
|
+
message: string;
|
|
453
|
+
actions?: MessageActionItem[];
|
|
454
|
+
};
|
|
455
|
+
export type MessageActionItem = {
|
|
456
|
+
title: string;
|
|
457
|
+
};
|
|
458
|
+
export type LogMessageParams = {
|
|
459
|
+
type: 1 | 2 | 3 | 4 | 5;
|
|
460
|
+
message: string;
|
|
461
|
+
};
|
|
462
|
+
export type DidOpenTextDocumentParams = {
|
|
463
|
+
textDocument: TextDocumentItem;
|
|
464
|
+
};
|
|
465
|
+
export type DidChangeTextDocumentParams = {
|
|
466
|
+
textDocument: VersionedTextDocumentIdentifier;
|
|
467
|
+
contentChanges: TextDocumentContentChangeEvent[];
|
|
468
|
+
};
|
|
469
|
+
export type TextDocumentChangeRegistrationOptions = {
|
|
470
|
+
documentSelector: DocumentSelector | null;
|
|
471
|
+
syncKind: 0 | 1 | 2;
|
|
472
|
+
};
|
|
473
|
+
export type DidCloseTextDocumentParams = {
|
|
474
|
+
textDocument: TextDocumentIdentifier;
|
|
475
|
+
};
|
|
476
|
+
export type DidSaveTextDocumentParams = {
|
|
477
|
+
textDocument: TextDocumentIdentifier;
|
|
478
|
+
text?: string;
|
|
479
|
+
};
|
|
480
|
+
export type TextDocumentSaveRegistrationOptions = {
|
|
481
|
+
documentSelector: DocumentSelector | null;
|
|
482
|
+
includeText?: boolean;
|
|
483
|
+
};
|
|
484
|
+
export type WillSaveTextDocumentParams = {
|
|
485
|
+
textDocument: TextDocumentIdentifier;
|
|
486
|
+
reason: 1 | 2 | 3;
|
|
487
|
+
};
|
|
488
|
+
export type TextEdit = {
|
|
489
|
+
range: Range;
|
|
490
|
+
newText: string;
|
|
491
|
+
};
|
|
492
|
+
export type DidChangeWatchedFilesParams = {
|
|
493
|
+
changes: FileEvent[];
|
|
494
|
+
};
|
|
495
|
+
export type DidChangeWatchedFilesRegistrationOptions = {
|
|
496
|
+
watchers: FileSystemWatcher[];
|
|
497
|
+
};
|
|
498
|
+
export type PublishDiagnosticsParams = {
|
|
499
|
+
uri: string;
|
|
500
|
+
version?: number;
|
|
501
|
+
diagnostics: Diagnostic[];
|
|
502
|
+
};
|
|
503
|
+
export type CompletionParams = {
|
|
504
|
+
textDocument: TextDocumentIdentifier;
|
|
505
|
+
position: Position;
|
|
506
|
+
workDoneToken?: ProgressToken;
|
|
507
|
+
partialResultToken?: ProgressToken;
|
|
508
|
+
context?: CompletionContext;
|
|
509
|
+
};
|
|
510
|
+
export type CompletionItem = {
|
|
511
|
+
label: string;
|
|
512
|
+
labelDetails?: CompletionItemLabelDetails;
|
|
513
|
+
kind?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25;
|
|
514
|
+
tags?: 1[];
|
|
515
|
+
detail?: string;
|
|
516
|
+
documentation?: string | MarkupContent;
|
|
517
|
+
deprecated?: boolean;
|
|
518
|
+
preselect?: boolean;
|
|
519
|
+
sortText?: string;
|
|
520
|
+
filterText?: string;
|
|
521
|
+
insertText?: string;
|
|
522
|
+
insertTextFormat?: 1 | 2;
|
|
523
|
+
insertTextMode?: 1 | 2;
|
|
524
|
+
textEdit?: TextEdit | InsertReplaceEdit;
|
|
525
|
+
textEditText?: string;
|
|
526
|
+
additionalTextEdits?: TextEdit[];
|
|
527
|
+
commitCharacters?: string[];
|
|
528
|
+
command?: Command;
|
|
529
|
+
data?: LSPAny;
|
|
530
|
+
};
|
|
531
|
+
export type CompletionList = {
|
|
532
|
+
isIncomplete: boolean;
|
|
533
|
+
itemDefaults?: CompletionItemDefaults;
|
|
534
|
+
applyKind?: CompletionItemApplyKinds;
|
|
535
|
+
items: CompletionItem[];
|
|
536
|
+
};
|
|
537
|
+
export type CompletionRegistrationOptions = {
|
|
538
|
+
documentSelector: DocumentSelector | null;
|
|
539
|
+
workDoneProgress?: boolean;
|
|
540
|
+
triggerCharacters?: string[];
|
|
541
|
+
allCommitCharacters?: string[];
|
|
542
|
+
resolveProvider?: boolean;
|
|
543
|
+
completionItem?: ServerCompletionItemOptions;
|
|
544
|
+
};
|
|
545
|
+
export type HoverParams = {
|
|
546
|
+
textDocument: TextDocumentIdentifier;
|
|
547
|
+
position: Position;
|
|
548
|
+
workDoneToken?: ProgressToken;
|
|
549
|
+
};
|
|
550
|
+
export type Hover = {
|
|
551
|
+
contents: MarkupContent | MarkedString | MarkedString[];
|
|
552
|
+
range?: Range;
|
|
553
|
+
};
|
|
554
|
+
export type HoverRegistrationOptions = {
|
|
555
|
+
documentSelector: DocumentSelector | null;
|
|
556
|
+
workDoneProgress?: boolean;
|
|
557
|
+
};
|
|
558
|
+
export type SignatureHelpParams = {
|
|
559
|
+
textDocument: TextDocumentIdentifier;
|
|
560
|
+
position: Position;
|
|
561
|
+
workDoneToken?: ProgressToken;
|
|
562
|
+
context?: SignatureHelpContext;
|
|
563
|
+
};
|
|
564
|
+
export type SignatureHelp = {
|
|
565
|
+
signatures: SignatureInformation[];
|
|
566
|
+
activeSignature?: number;
|
|
567
|
+
activeParameter?: number | null;
|
|
568
|
+
};
|
|
569
|
+
export type SignatureHelpRegistrationOptions = {
|
|
570
|
+
documentSelector: DocumentSelector | null;
|
|
571
|
+
workDoneProgress?: boolean;
|
|
572
|
+
triggerCharacters?: string[];
|
|
573
|
+
retriggerCharacters?: string[];
|
|
574
|
+
};
|
|
575
|
+
export type DefinitionParams = {
|
|
576
|
+
textDocument: TextDocumentIdentifier;
|
|
577
|
+
position: Position;
|
|
578
|
+
workDoneToken?: ProgressToken;
|
|
579
|
+
partialResultToken?: ProgressToken;
|
|
580
|
+
};
|
|
581
|
+
export type DefinitionRegistrationOptions = {
|
|
582
|
+
documentSelector: DocumentSelector | null;
|
|
583
|
+
workDoneProgress?: boolean;
|
|
584
|
+
};
|
|
585
|
+
export type ReferenceParams = {
|
|
586
|
+
textDocument: TextDocumentIdentifier;
|
|
587
|
+
position: Position;
|
|
588
|
+
workDoneToken?: ProgressToken;
|
|
589
|
+
partialResultToken?: ProgressToken;
|
|
590
|
+
context: ReferenceContext;
|
|
591
|
+
};
|
|
592
|
+
export type ReferenceRegistrationOptions = {
|
|
593
|
+
documentSelector: DocumentSelector | null;
|
|
594
|
+
workDoneProgress?: boolean;
|
|
595
|
+
};
|
|
596
|
+
export type DocumentHighlightParams = {
|
|
597
|
+
textDocument: TextDocumentIdentifier;
|
|
598
|
+
position: Position;
|
|
599
|
+
workDoneToken?: ProgressToken;
|
|
600
|
+
partialResultToken?: ProgressToken;
|
|
601
|
+
};
|
|
602
|
+
export type DocumentHighlight = {
|
|
603
|
+
range: Range;
|
|
604
|
+
kind?: 1 | 2 | 3;
|
|
605
|
+
};
|
|
606
|
+
export type DocumentHighlightRegistrationOptions = {
|
|
607
|
+
documentSelector: DocumentSelector | null;
|
|
608
|
+
workDoneProgress?: boolean;
|
|
609
|
+
};
|
|
610
|
+
export type DocumentSymbolParams = {
|
|
611
|
+
workDoneToken?: ProgressToken;
|
|
612
|
+
partialResultToken?: ProgressToken;
|
|
613
|
+
textDocument: TextDocumentIdentifier;
|
|
614
|
+
};
|
|
615
|
+
export type SymbolInformation = {
|
|
616
|
+
name: string;
|
|
617
|
+
kind: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26;
|
|
618
|
+
tags?: 1[];
|
|
619
|
+
containerName?: string;
|
|
620
|
+
deprecated?: boolean;
|
|
621
|
+
location: Location;
|
|
622
|
+
};
|
|
623
|
+
export type DocumentSymbol = {
|
|
624
|
+
name: string;
|
|
625
|
+
detail?: string;
|
|
626
|
+
kind: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26;
|
|
627
|
+
tags?: 1[];
|
|
628
|
+
deprecated?: boolean;
|
|
629
|
+
range: Range;
|
|
630
|
+
selectionRange: Range;
|
|
631
|
+
children?: DocumentSymbol[];
|
|
632
|
+
};
|
|
633
|
+
export type DocumentSymbolRegistrationOptions = {
|
|
634
|
+
documentSelector: DocumentSelector | null;
|
|
635
|
+
workDoneProgress?: boolean;
|
|
636
|
+
label?: string;
|
|
637
|
+
};
|
|
638
|
+
export type CodeActionParams = {
|
|
639
|
+
workDoneToken?: ProgressToken;
|
|
640
|
+
partialResultToken?: ProgressToken;
|
|
641
|
+
textDocument: TextDocumentIdentifier;
|
|
642
|
+
range: Range;
|
|
643
|
+
context: CodeActionContext;
|
|
644
|
+
};
|
|
645
|
+
export type Command = {
|
|
646
|
+
title: string;
|
|
647
|
+
tooltip?: string;
|
|
648
|
+
command: string;
|
|
649
|
+
arguments?: LSPAny[];
|
|
650
|
+
};
|
|
651
|
+
export type CodeAction = {
|
|
652
|
+
title: string;
|
|
653
|
+
kind?: '' | 'quickfix' | 'refactor' | 'refactor.extract' | 'refactor.inline' | 'refactor.move' | 'refactor.rewrite' | 'source' | 'source.organizeImports' | 'source.fixAll' | 'notebook' | string;
|
|
654
|
+
diagnostics?: Diagnostic[];
|
|
655
|
+
isPreferred?: boolean;
|
|
656
|
+
disabled?: CodeActionDisabled;
|
|
657
|
+
edit?: WorkspaceEdit;
|
|
658
|
+
command?: Command;
|
|
659
|
+
data?: LSPAny;
|
|
660
|
+
tags?: 1[];
|
|
661
|
+
};
|
|
662
|
+
export type CodeActionRegistrationOptions = {
|
|
663
|
+
documentSelector: DocumentSelector | null;
|
|
664
|
+
workDoneProgress?: boolean;
|
|
665
|
+
codeActionKinds?: ('' | 'quickfix' | 'refactor' | 'refactor.extract' | 'refactor.inline' | 'refactor.move' | 'refactor.rewrite' | 'source' | 'source.organizeImports' | 'source.fixAll' | 'notebook' | string)[];
|
|
666
|
+
documentation?: CodeActionKindDocumentation[];
|
|
667
|
+
resolveProvider?: boolean;
|
|
668
|
+
};
|
|
669
|
+
export type WorkspaceSymbolParams = {
|
|
670
|
+
workDoneToken?: ProgressToken;
|
|
671
|
+
partialResultToken?: ProgressToken;
|
|
672
|
+
query: string;
|
|
673
|
+
};
|
|
674
|
+
export type WorkspaceSymbol = {
|
|
675
|
+
name: string;
|
|
676
|
+
kind: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26;
|
|
677
|
+
tags?: 1[];
|
|
678
|
+
containerName?: string;
|
|
679
|
+
location: Location | LocationUriOnly;
|
|
680
|
+
data?: LSPAny;
|
|
681
|
+
};
|
|
682
|
+
export type WorkspaceSymbolRegistrationOptions = {
|
|
683
|
+
workDoneProgress?: boolean;
|
|
684
|
+
resolveProvider?: boolean;
|
|
685
|
+
};
|
|
686
|
+
export type CodeLensParams = {
|
|
687
|
+
workDoneToken?: ProgressToken;
|
|
688
|
+
partialResultToken?: ProgressToken;
|
|
689
|
+
textDocument: TextDocumentIdentifier;
|
|
690
|
+
};
|
|
691
|
+
export type CodeLens = {
|
|
692
|
+
range: Range;
|
|
693
|
+
command?: Command;
|
|
694
|
+
data?: LSPAny;
|
|
695
|
+
};
|
|
696
|
+
export type CodeLensRegistrationOptions = {
|
|
697
|
+
documentSelector: DocumentSelector | null;
|
|
698
|
+
workDoneProgress?: boolean;
|
|
699
|
+
resolveProvider?: boolean;
|
|
700
|
+
};
|
|
701
|
+
export type DocumentLinkParams = {
|
|
702
|
+
workDoneToken?: ProgressToken;
|
|
703
|
+
partialResultToken?: ProgressToken;
|
|
704
|
+
textDocument: TextDocumentIdentifier;
|
|
705
|
+
};
|
|
706
|
+
export type DocumentLink = {
|
|
707
|
+
range: Range;
|
|
708
|
+
target?: string;
|
|
709
|
+
tooltip?: string;
|
|
710
|
+
data?: LSPAny;
|
|
711
|
+
};
|
|
712
|
+
export type DocumentLinkRegistrationOptions = {
|
|
713
|
+
documentSelector: DocumentSelector | null;
|
|
714
|
+
workDoneProgress?: boolean;
|
|
715
|
+
resolveProvider?: boolean;
|
|
716
|
+
};
|
|
717
|
+
export type DocumentFormattingParams = {
|
|
718
|
+
workDoneToken?: ProgressToken;
|
|
719
|
+
textDocument: TextDocumentIdentifier;
|
|
720
|
+
options: FormattingOptions;
|
|
721
|
+
};
|
|
722
|
+
export type DocumentFormattingRegistrationOptions = {
|
|
723
|
+
documentSelector: DocumentSelector | null;
|
|
724
|
+
workDoneProgress?: boolean;
|
|
725
|
+
};
|
|
726
|
+
export type DocumentRangeFormattingParams = {
|
|
727
|
+
workDoneToken?: ProgressToken;
|
|
728
|
+
textDocument: TextDocumentIdentifier;
|
|
729
|
+
range: Range;
|
|
730
|
+
options: FormattingOptions;
|
|
731
|
+
};
|
|
732
|
+
export type DocumentRangeFormattingRegistrationOptions = {
|
|
733
|
+
documentSelector: DocumentSelector | null;
|
|
734
|
+
workDoneProgress?: boolean;
|
|
735
|
+
rangesSupport?: boolean;
|
|
736
|
+
};
|
|
737
|
+
export type DocumentRangesFormattingParams = {
|
|
738
|
+
workDoneToken?: ProgressToken;
|
|
739
|
+
textDocument: TextDocumentIdentifier;
|
|
740
|
+
ranges: Range[];
|
|
741
|
+
options: FormattingOptions;
|
|
742
|
+
};
|
|
743
|
+
export type DocumentOnTypeFormattingParams = {
|
|
744
|
+
textDocument: TextDocumentIdentifier;
|
|
745
|
+
position: Position;
|
|
746
|
+
ch: string;
|
|
747
|
+
options: FormattingOptions;
|
|
748
|
+
};
|
|
749
|
+
export type DocumentOnTypeFormattingRegistrationOptions = {
|
|
750
|
+
documentSelector: DocumentSelector | null;
|
|
751
|
+
firstTriggerCharacter: string;
|
|
752
|
+
moreTriggerCharacter?: string[];
|
|
753
|
+
};
|
|
754
|
+
export type RenameParams = {
|
|
755
|
+
textDocument: TextDocumentIdentifier;
|
|
756
|
+
position: Position;
|
|
757
|
+
workDoneToken?: ProgressToken;
|
|
758
|
+
newName: string;
|
|
759
|
+
};
|
|
760
|
+
export type RenameRegistrationOptions = {
|
|
761
|
+
documentSelector: DocumentSelector | null;
|
|
762
|
+
workDoneProgress?: boolean;
|
|
763
|
+
prepareProvider?: boolean;
|
|
764
|
+
};
|
|
765
|
+
export type PrepareRenameParams = {
|
|
766
|
+
textDocument: TextDocumentIdentifier;
|
|
767
|
+
position: Position;
|
|
768
|
+
workDoneToken?: ProgressToken;
|
|
769
|
+
};
|
|
770
|
+
export type ExecuteCommandParams = {
|
|
771
|
+
workDoneToken?: ProgressToken;
|
|
772
|
+
command: string;
|
|
773
|
+
arguments?: LSPAny[];
|
|
774
|
+
};
|
|
775
|
+
export type ExecuteCommandRegistrationOptions = {
|
|
776
|
+
workDoneProgress?: boolean;
|
|
777
|
+
commands: string[];
|
|
778
|
+
};
|
|
779
|
+
export type ApplyWorkspaceEditParams = {
|
|
780
|
+
label?: string;
|
|
781
|
+
edit: WorkspaceEdit;
|
|
782
|
+
metadata?: WorkspaceEditMetadata;
|
|
783
|
+
};
|
|
784
|
+
export type ApplyWorkspaceEditResult = {
|
|
785
|
+
applied: boolean;
|
|
786
|
+
failureReason?: string;
|
|
787
|
+
failedChange?: number;
|
|
788
|
+
};
|
|
789
|
+
export type WorkDoneProgressBegin = {
|
|
790
|
+
kind: 'begin';
|
|
791
|
+
title: string;
|
|
792
|
+
cancellable?: boolean;
|
|
793
|
+
message?: string;
|
|
794
|
+
percentage?: number;
|
|
795
|
+
};
|
|
796
|
+
export type WorkDoneProgressReport = {
|
|
797
|
+
kind: 'report';
|
|
798
|
+
cancellable?: boolean;
|
|
799
|
+
message?: string;
|
|
800
|
+
percentage?: number;
|
|
801
|
+
};
|
|
802
|
+
export type WorkDoneProgressEnd = {
|
|
803
|
+
kind: 'end';
|
|
804
|
+
message?: string;
|
|
805
|
+
};
|
|
806
|
+
export type SetTraceParams = {
|
|
807
|
+
value: 'off' | 'messages' | 'compact' | 'verbose';
|
|
808
|
+
};
|
|
809
|
+
export type LogTraceParams = {
|
|
810
|
+
message: string;
|
|
811
|
+
verbose?: string;
|
|
812
|
+
};
|
|
13
813
|
export type CancelParams = {
|
|
14
814
|
id: number | string;
|
|
15
815
|
};
|
|
16
816
|
export type ProgressParams = {
|
|
17
|
-
token:
|
|
817
|
+
token: ProgressToken;
|
|
818
|
+
value: LSPAny;
|
|
819
|
+
};
|
|
820
|
+
export type TextDocumentPositionParams = {
|
|
821
|
+
textDocument: TextDocumentIdentifier;
|
|
822
|
+
position: Position;
|
|
823
|
+
};
|
|
824
|
+
export type WorkDoneProgressParams = {
|
|
825
|
+
workDoneToken?: ProgressToken;
|
|
826
|
+
};
|
|
827
|
+
export type PartialResultParams = {
|
|
828
|
+
partialResultToken?: ProgressToken;
|
|
829
|
+
};
|
|
830
|
+
export type LocationLink = {
|
|
831
|
+
originSelectionRange?: Range;
|
|
832
|
+
targetUri: string;
|
|
833
|
+
targetRange: Range;
|
|
834
|
+
targetSelectionRange: Range;
|
|
835
|
+
};
|
|
836
|
+
export type Range = {
|
|
837
|
+
start: Position;
|
|
838
|
+
end: Position;
|
|
839
|
+
};
|
|
840
|
+
export type ImplementationOptions = {
|
|
841
|
+
workDoneProgress?: boolean;
|
|
842
|
+
};
|
|
843
|
+
export type StaticRegistrationOptions = {
|
|
844
|
+
id?: string;
|
|
845
|
+
};
|
|
846
|
+
export type TypeDefinitionOptions = {
|
|
847
|
+
workDoneProgress?: boolean;
|
|
848
|
+
};
|
|
849
|
+
export type WorkspaceFoldersChangeEvent = {
|
|
850
|
+
added: WorkspaceFolder[];
|
|
851
|
+
removed: WorkspaceFolder[];
|
|
852
|
+
};
|
|
853
|
+
export type ConfigurationItem = {
|
|
854
|
+
scopeUri?: string;
|
|
855
|
+
section?: string;
|
|
856
|
+
};
|
|
857
|
+
export type TextDocumentIdentifier = {
|
|
858
|
+
uri: string;
|
|
859
|
+
};
|
|
860
|
+
export type Color = {
|
|
861
|
+
red: number;
|
|
862
|
+
green: number;
|
|
863
|
+
blue: number;
|
|
864
|
+
alpha: number;
|
|
865
|
+
};
|
|
866
|
+
export type DocumentColorOptions = {
|
|
867
|
+
workDoneProgress?: boolean;
|
|
868
|
+
};
|
|
869
|
+
export type FoldingRangeOptions = {
|
|
870
|
+
workDoneProgress?: boolean;
|
|
871
|
+
};
|
|
872
|
+
export type DeclarationOptions = {
|
|
873
|
+
workDoneProgress?: boolean;
|
|
874
|
+
};
|
|
875
|
+
export type Position = {
|
|
876
|
+
line: number;
|
|
877
|
+
character: number;
|
|
878
|
+
};
|
|
879
|
+
export type SelectionRangeOptions = {
|
|
880
|
+
workDoneProgress?: boolean;
|
|
881
|
+
};
|
|
882
|
+
export type CallHierarchyOptions = {
|
|
883
|
+
workDoneProgress?: boolean;
|
|
884
|
+
};
|
|
885
|
+
export type SemanticTokensOptions = {
|
|
886
|
+
workDoneProgress?: boolean;
|
|
887
|
+
legend: SemanticTokensLegend;
|
|
888
|
+
range?: boolean | {};
|
|
889
|
+
full?: boolean | SemanticTokensFullDelta;
|
|
890
|
+
};
|
|
891
|
+
export type SemanticTokensEdit = {
|
|
892
|
+
start: number;
|
|
893
|
+
deleteCount: number;
|
|
894
|
+
data?: number[];
|
|
895
|
+
};
|
|
896
|
+
export type LinkedEditingRangeOptions = {
|
|
897
|
+
workDoneProgress?: boolean;
|
|
898
|
+
};
|
|
899
|
+
export type FileCreate = {
|
|
900
|
+
uri: string;
|
|
901
|
+
};
|
|
902
|
+
export type TextDocumentEdit = {
|
|
903
|
+
textDocument: OptionalVersionedTextDocumentIdentifier;
|
|
904
|
+
edits: (TextEdit | AnnotatedTextEdit | SnippetTextEdit)[];
|
|
905
|
+
};
|
|
906
|
+
export type CreateFile = {
|
|
907
|
+
kind: 'create';
|
|
908
|
+
annotationId?: ChangeAnnotationIdentifier;
|
|
909
|
+
uri: string;
|
|
910
|
+
options?: CreateFileOptions;
|
|
911
|
+
};
|
|
912
|
+
export type RenameFile = {
|
|
913
|
+
kind: 'rename';
|
|
914
|
+
annotationId?: ChangeAnnotationIdentifier;
|
|
915
|
+
oldUri: string;
|
|
916
|
+
newUri: string;
|
|
917
|
+
options?: RenameFileOptions;
|
|
918
|
+
};
|
|
919
|
+
export type DeleteFile = {
|
|
920
|
+
kind: 'delete';
|
|
921
|
+
annotationId?: ChangeAnnotationIdentifier;
|
|
922
|
+
uri: string;
|
|
923
|
+
options?: DeleteFileOptions;
|
|
924
|
+
};
|
|
925
|
+
export type ChangeAnnotation = {
|
|
926
|
+
label: string;
|
|
927
|
+
needsConfirmation?: boolean;
|
|
928
|
+
description?: string;
|
|
929
|
+
};
|
|
930
|
+
export type FileOperationFilter = {
|
|
931
|
+
scheme?: string;
|
|
932
|
+
pattern: FileOperationPattern;
|
|
933
|
+
};
|
|
934
|
+
export type FileRename = {
|
|
935
|
+
oldUri: string;
|
|
936
|
+
newUri: string;
|
|
937
|
+
};
|
|
938
|
+
export type FileDelete = {
|
|
939
|
+
uri: string;
|
|
940
|
+
};
|
|
941
|
+
export type MonikerOptions = {
|
|
942
|
+
workDoneProgress?: boolean;
|
|
943
|
+
};
|
|
944
|
+
export type TypeHierarchyOptions = {
|
|
945
|
+
workDoneProgress?: boolean;
|
|
946
|
+
};
|
|
947
|
+
export type InlineValueContext = {
|
|
948
|
+
frameId: number;
|
|
949
|
+
stoppedLocation: Range;
|
|
950
|
+
};
|
|
951
|
+
export type InlineValueText = {
|
|
952
|
+
range: Range;
|
|
953
|
+
text: string;
|
|
18
954
|
};
|
|
955
|
+
export type InlineValueVariableLookup = {
|
|
956
|
+
range: Range;
|
|
957
|
+
variableName?: string;
|
|
958
|
+
caseSensitiveLookup: boolean;
|
|
959
|
+
};
|
|
960
|
+
export type InlineValueEvaluatableExpression = {
|
|
961
|
+
range: Range;
|
|
962
|
+
expression?: string;
|
|
963
|
+
};
|
|
964
|
+
export type InlineValueOptions = {
|
|
965
|
+
workDoneProgress?: boolean;
|
|
966
|
+
};
|
|
967
|
+
export type InlayHintLabelPart = {
|
|
968
|
+
value: string;
|
|
969
|
+
tooltip?: string | MarkupContent;
|
|
970
|
+
location?: Location;
|
|
971
|
+
command?: Command;
|
|
972
|
+
};
|
|
973
|
+
export type MarkupContent = {
|
|
974
|
+
kind: 'plaintext' | 'markdown';
|
|
975
|
+
value: string;
|
|
976
|
+
};
|
|
977
|
+
export type InlayHintOptions = {
|
|
978
|
+
workDoneProgress?: boolean;
|
|
979
|
+
resolveProvider?: boolean;
|
|
980
|
+
};
|
|
981
|
+
export type RelatedFullDocumentDiagnosticReport = {
|
|
982
|
+
kind: 'full';
|
|
983
|
+
resultId?: string;
|
|
984
|
+
items: Diagnostic[];
|
|
985
|
+
relatedDocuments?: {
|
|
986
|
+
[key: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
export type RelatedUnchangedDocumentDiagnosticReport = {
|
|
990
|
+
kind: 'unchanged';
|
|
991
|
+
resultId: string;
|
|
992
|
+
relatedDocuments?: {
|
|
993
|
+
[key: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
export type FullDocumentDiagnosticReport = {
|
|
997
|
+
kind: 'full';
|
|
998
|
+
resultId?: string;
|
|
999
|
+
items: Diagnostic[];
|
|
1000
|
+
};
|
|
1001
|
+
export type UnchangedDocumentDiagnosticReport = {
|
|
1002
|
+
kind: 'unchanged';
|
|
1003
|
+
resultId: string;
|
|
1004
|
+
};
|
|
1005
|
+
export type DiagnosticOptions = {
|
|
1006
|
+
workDoneProgress?: boolean;
|
|
1007
|
+
identifier?: string;
|
|
1008
|
+
interFileDependencies: boolean;
|
|
1009
|
+
workspaceDiagnostics: boolean;
|
|
1010
|
+
};
|
|
1011
|
+
export type PreviousResultId = {
|
|
1012
|
+
uri: string;
|
|
1013
|
+
value: string;
|
|
1014
|
+
};
|
|
1015
|
+
export type NotebookDocument = {
|
|
1016
|
+
uri: string;
|
|
1017
|
+
notebookType: string;
|
|
1018
|
+
version: number;
|
|
1019
|
+
metadata?: LSPObject;
|
|
1020
|
+
cells: NotebookCell[];
|
|
1021
|
+
};
|
|
1022
|
+
export type TextDocumentItem = {
|
|
1023
|
+
uri: string;
|
|
1024
|
+
languageId: 'abap' | 'bat' | 'bibtex' | 'clojure' | 'coffeescript' | 'c' | 'cpp' | 'csharp' | 'css' | 'd' | 'pascal' | 'diff' | 'dart' | 'dockerfile' | 'elixir' | 'erlang' | 'fsharp' | 'git-commit' | 'git-rebase' | 'go' | 'groovy' | 'handlebars' | 'haskell' | 'html' | 'ini' | 'java' | 'javascript' | 'javascriptreact' | 'json' | 'latex' | 'less' | 'lua' | 'makefile' | 'markdown' | 'objective-c' | 'objective-cpp' | 'pascal' | 'perl' | 'perl6' | 'php' | 'plaintext' | 'powershell' | 'jade' | 'python' | 'r' | 'razor' | 'ruby' | 'rust' | 'scss' | 'sass' | 'scala' | 'shaderlab' | 'shellscript' | 'sql' | 'swift' | 'typescript' | 'typescriptreact' | 'tex' | 'vb' | 'xml' | 'xsl' | 'yaml' | string;
|
|
1025
|
+
version: number;
|
|
1026
|
+
text: string;
|
|
1027
|
+
};
|
|
1028
|
+
export type NotebookDocumentSyncOptions = {
|
|
1029
|
+
notebookSelector: (NotebookDocumentFilterWithNotebook | NotebookDocumentFilterWithCells)[];
|
|
1030
|
+
save?: boolean;
|
|
1031
|
+
};
|
|
1032
|
+
export type VersionedNotebookDocumentIdentifier = {
|
|
1033
|
+
version: number;
|
|
1034
|
+
uri: string;
|
|
1035
|
+
};
|
|
1036
|
+
export type NotebookDocumentChangeEvent = {
|
|
1037
|
+
metadata?: LSPObject;
|
|
1038
|
+
cells?: NotebookDocumentCellChanges;
|
|
1039
|
+
};
|
|
1040
|
+
export type NotebookDocumentIdentifier = {
|
|
1041
|
+
uri: string;
|
|
1042
|
+
};
|
|
1043
|
+
export type InlineCompletionContext = {
|
|
1044
|
+
triggerKind: 1 | 2;
|
|
1045
|
+
selectedCompletionInfo?: SelectedCompletionInfo;
|
|
1046
|
+
};
|
|
1047
|
+
export type StringValue = {
|
|
1048
|
+
kind: 'snippet';
|
|
1049
|
+
value: string;
|
|
1050
|
+
};
|
|
1051
|
+
export type InlineCompletionOptions = {
|
|
1052
|
+
workDoneProgress?: boolean;
|
|
1053
|
+
};
|
|
1054
|
+
export type TextDocumentContentOptions = {
|
|
1055
|
+
schemes: string[];
|
|
1056
|
+
};
|
|
1057
|
+
export type Registration = {
|
|
1058
|
+
id: string;
|
|
1059
|
+
method: string;
|
|
1060
|
+
registerOptions?: LSPAny;
|
|
1061
|
+
};
|
|
1062
|
+
export type Unregistration = {
|
|
1063
|
+
id: string;
|
|
1064
|
+
method: string;
|
|
1065
|
+
};
|
|
1066
|
+
export type _InitializeParams = {
|
|
1067
|
+
workDoneToken?: ProgressToken;
|
|
1068
|
+
processId: number | null;
|
|
1069
|
+
clientInfo?: ClientInfo;
|
|
1070
|
+
locale?: string;
|
|
1071
|
+
rootPath?: string | null;
|
|
1072
|
+
rootUri: string | null;
|
|
1073
|
+
capabilities: ClientCapabilities;
|
|
1074
|
+
initializationOptions?: LSPAny;
|
|
1075
|
+
trace?: 'off' | 'messages' | 'compact' | 'verbose';
|
|
1076
|
+
};
|
|
1077
|
+
export type WorkspaceFoldersInitializeParams = {
|
|
1078
|
+
workspaceFolders?: WorkspaceFolder[] | null;
|
|
1079
|
+
};
|
|
1080
|
+
export type ServerCapabilities = {
|
|
1081
|
+
positionEncoding?: 'utf-8' | 'utf-16' | 'utf-32' | string;
|
|
1082
|
+
textDocumentSync?: TextDocumentSyncOptions | 0 | 1 | 2;
|
|
1083
|
+
notebookDocumentSync?: NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions;
|
|
1084
|
+
completionProvider?: CompletionOptions;
|
|
1085
|
+
hoverProvider?: boolean | HoverOptions;
|
|
1086
|
+
signatureHelpProvider?: SignatureHelpOptions;
|
|
1087
|
+
declarationProvider?: boolean | DeclarationOptions | DeclarationRegistrationOptions;
|
|
1088
|
+
definitionProvider?: boolean | DefinitionOptions;
|
|
1089
|
+
typeDefinitionProvider?: boolean | TypeDefinitionOptions | TypeDefinitionRegistrationOptions;
|
|
1090
|
+
implementationProvider?: boolean | ImplementationOptions | ImplementationRegistrationOptions;
|
|
1091
|
+
referencesProvider?: boolean | ReferenceOptions;
|
|
1092
|
+
documentHighlightProvider?: boolean | DocumentHighlightOptions;
|
|
1093
|
+
documentSymbolProvider?: boolean | DocumentSymbolOptions;
|
|
1094
|
+
codeActionProvider?: boolean | CodeActionOptions;
|
|
1095
|
+
codeLensProvider?: CodeLensOptions;
|
|
1096
|
+
documentLinkProvider?: DocumentLinkOptions;
|
|
1097
|
+
colorProvider?: boolean | DocumentColorOptions | DocumentColorRegistrationOptions;
|
|
1098
|
+
workspaceSymbolProvider?: boolean | WorkspaceSymbolOptions;
|
|
1099
|
+
documentFormattingProvider?: boolean | DocumentFormattingOptions;
|
|
1100
|
+
documentRangeFormattingProvider?: boolean | DocumentRangeFormattingOptions;
|
|
1101
|
+
documentOnTypeFormattingProvider?: DocumentOnTypeFormattingOptions;
|
|
1102
|
+
renameProvider?: boolean | RenameOptions;
|
|
1103
|
+
foldingRangeProvider?: boolean | FoldingRangeOptions | FoldingRangeRegistrationOptions;
|
|
1104
|
+
selectionRangeProvider?: boolean | SelectionRangeOptions | SelectionRangeRegistrationOptions;
|
|
1105
|
+
executeCommandProvider?: ExecuteCommandOptions;
|
|
1106
|
+
callHierarchyProvider?: boolean | CallHierarchyOptions | CallHierarchyRegistrationOptions;
|
|
1107
|
+
linkedEditingRangeProvider?: boolean | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions;
|
|
1108
|
+
semanticTokensProvider?: SemanticTokensOptions | SemanticTokensRegistrationOptions;
|
|
1109
|
+
monikerProvider?: boolean | MonikerOptions | MonikerRegistrationOptions;
|
|
1110
|
+
typeHierarchyProvider?: boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions;
|
|
1111
|
+
inlineValueProvider?: boolean | InlineValueOptions | InlineValueRegistrationOptions;
|
|
1112
|
+
inlayHintProvider?: boolean | InlayHintOptions | InlayHintRegistrationOptions;
|
|
1113
|
+
diagnosticProvider?: DiagnosticOptions | DiagnosticRegistrationOptions;
|
|
1114
|
+
inlineCompletionProvider?: boolean | InlineCompletionOptions;
|
|
1115
|
+
workspace?: WorkspaceOptions;
|
|
1116
|
+
experimental?: LSPAny;
|
|
1117
|
+
};
|
|
1118
|
+
export type ServerInfo = {
|
|
1119
|
+
name: string;
|
|
1120
|
+
version?: string;
|
|
1121
|
+
};
|
|
1122
|
+
export type VersionedTextDocumentIdentifier = {
|
|
1123
|
+
uri: string;
|
|
1124
|
+
version: number;
|
|
1125
|
+
};
|
|
1126
|
+
export type SaveOptions = {
|
|
1127
|
+
includeText?: boolean;
|
|
1128
|
+
};
|
|
1129
|
+
export type FileEvent = {
|
|
1130
|
+
uri: string;
|
|
1131
|
+
type: 1 | 2 | 3;
|
|
1132
|
+
};
|
|
1133
|
+
export type FileSystemWatcher = {
|
|
1134
|
+
globPattern: GlobPattern;
|
|
1135
|
+
kind?: 1 | 2 | 4 | number;
|
|
1136
|
+
};
|
|
1137
|
+
export type Diagnostic = {
|
|
1138
|
+
range: Range;
|
|
1139
|
+
severity?: 1 | 2 | 3 | 4;
|
|
1140
|
+
code?: number | string;
|
|
1141
|
+
codeDescription?: CodeDescription;
|
|
1142
|
+
source?: string;
|
|
1143
|
+
message: string | MarkupContent;
|
|
1144
|
+
tags?: (1 | 2)[];
|
|
1145
|
+
relatedInformation?: DiagnosticRelatedInformation[];
|
|
1146
|
+
data?: LSPAny;
|
|
1147
|
+
};
|
|
1148
|
+
export type CompletionContext = {
|
|
1149
|
+
triggerKind: 1 | 2 | 3;
|
|
1150
|
+
triggerCharacter?: string;
|
|
1151
|
+
};
|
|
1152
|
+
export type CompletionItemLabelDetails = {
|
|
1153
|
+
detail?: string;
|
|
1154
|
+
description?: string;
|
|
1155
|
+
};
|
|
1156
|
+
export type InsertReplaceEdit = {
|
|
1157
|
+
newText: string;
|
|
1158
|
+
insert: Range;
|
|
1159
|
+
replace: Range;
|
|
1160
|
+
};
|
|
1161
|
+
export type CompletionItemDefaults = {
|
|
1162
|
+
commitCharacters?: string[];
|
|
1163
|
+
editRange?: Range | EditRangeWithInsertReplace;
|
|
1164
|
+
insertTextFormat?: 1 | 2;
|
|
1165
|
+
insertTextMode?: 1 | 2;
|
|
1166
|
+
data?: LSPAny;
|
|
1167
|
+
};
|
|
1168
|
+
export type CompletionItemApplyKinds = {
|
|
1169
|
+
commitCharacters?: 1 | 2;
|
|
1170
|
+
data?: 1 | 2;
|
|
1171
|
+
};
|
|
1172
|
+
export type CompletionOptions = {
|
|
1173
|
+
workDoneProgress?: boolean;
|
|
1174
|
+
triggerCharacters?: string[];
|
|
1175
|
+
allCommitCharacters?: string[];
|
|
1176
|
+
resolveProvider?: boolean;
|
|
1177
|
+
completionItem?: ServerCompletionItemOptions;
|
|
1178
|
+
};
|
|
1179
|
+
export type HoverOptions = {
|
|
1180
|
+
workDoneProgress?: boolean;
|
|
1181
|
+
};
|
|
1182
|
+
export type SignatureHelpContext = {
|
|
1183
|
+
triggerKind: 1 | 2 | 3;
|
|
1184
|
+
triggerCharacter?: string;
|
|
1185
|
+
isRetrigger: boolean;
|
|
1186
|
+
activeSignatureHelp?: SignatureHelp;
|
|
1187
|
+
};
|
|
1188
|
+
export type SignatureInformation = {
|
|
1189
|
+
label: string;
|
|
1190
|
+
documentation?: string | MarkupContent;
|
|
1191
|
+
parameters?: ParameterInformation[];
|
|
1192
|
+
activeParameter?: number | null;
|
|
1193
|
+
};
|
|
1194
|
+
export type SignatureHelpOptions = {
|
|
1195
|
+
workDoneProgress?: boolean;
|
|
1196
|
+
triggerCharacters?: string[];
|
|
1197
|
+
retriggerCharacters?: string[];
|
|
1198
|
+
};
|
|
1199
|
+
export type DefinitionOptions = {
|
|
1200
|
+
workDoneProgress?: boolean;
|
|
1201
|
+
};
|
|
1202
|
+
export type ReferenceContext = {
|
|
1203
|
+
includeDeclaration: boolean;
|
|
1204
|
+
};
|
|
1205
|
+
export type ReferenceOptions = {
|
|
1206
|
+
workDoneProgress?: boolean;
|
|
1207
|
+
};
|
|
1208
|
+
export type DocumentHighlightOptions = {
|
|
1209
|
+
workDoneProgress?: boolean;
|
|
1210
|
+
};
|
|
1211
|
+
export type BaseSymbolInformation = {
|
|
1212
|
+
name: string;
|
|
1213
|
+
kind: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26;
|
|
1214
|
+
tags?: 1[];
|
|
1215
|
+
containerName?: string;
|
|
1216
|
+
};
|
|
1217
|
+
export type DocumentSymbolOptions = {
|
|
1218
|
+
workDoneProgress?: boolean;
|
|
1219
|
+
label?: string;
|
|
1220
|
+
};
|
|
1221
|
+
export type CodeActionContext = {
|
|
1222
|
+
diagnostics: Diagnostic[];
|
|
1223
|
+
only?: ('' | 'quickfix' | 'refactor' | 'refactor.extract' | 'refactor.inline' | 'refactor.move' | 'refactor.rewrite' | 'source' | 'source.organizeImports' | 'source.fixAll' | 'notebook' | string)[];
|
|
1224
|
+
triggerKind?: 1 | 2;
|
|
1225
|
+
};
|
|
1226
|
+
export type CodeActionDisabled = {
|
|
1227
|
+
reason: string;
|
|
1228
|
+
};
|
|
1229
|
+
export type CodeActionOptions = {
|
|
1230
|
+
workDoneProgress?: boolean;
|
|
1231
|
+
codeActionKinds?: ('' | 'quickfix' | 'refactor' | 'refactor.extract' | 'refactor.inline' | 'refactor.move' | 'refactor.rewrite' | 'source' | 'source.organizeImports' | 'source.fixAll' | 'notebook' | string)[];
|
|
1232
|
+
documentation?: CodeActionKindDocumentation[];
|
|
1233
|
+
resolveProvider?: boolean;
|
|
1234
|
+
};
|
|
1235
|
+
export type LocationUriOnly = {
|
|
1236
|
+
uri: string;
|
|
1237
|
+
};
|
|
1238
|
+
export type WorkspaceSymbolOptions = {
|
|
1239
|
+
workDoneProgress?: boolean;
|
|
1240
|
+
resolveProvider?: boolean;
|
|
1241
|
+
};
|
|
1242
|
+
export type CodeLensOptions = {
|
|
1243
|
+
workDoneProgress?: boolean;
|
|
1244
|
+
resolveProvider?: boolean;
|
|
1245
|
+
};
|
|
1246
|
+
export type DocumentLinkOptions = {
|
|
1247
|
+
workDoneProgress?: boolean;
|
|
1248
|
+
resolveProvider?: boolean;
|
|
1249
|
+
};
|
|
1250
|
+
export type FormattingOptions = {
|
|
1251
|
+
tabSize: number;
|
|
1252
|
+
insertSpaces: boolean;
|
|
1253
|
+
trimTrailingWhitespace?: boolean;
|
|
1254
|
+
insertFinalNewline?: boolean;
|
|
1255
|
+
trimFinalNewlines?: boolean;
|
|
1256
|
+
};
|
|
1257
|
+
export type DocumentFormattingOptions = {
|
|
1258
|
+
workDoneProgress?: boolean;
|
|
1259
|
+
};
|
|
1260
|
+
export type DocumentRangeFormattingOptions = {
|
|
1261
|
+
workDoneProgress?: boolean;
|
|
1262
|
+
rangesSupport?: boolean;
|
|
1263
|
+
};
|
|
1264
|
+
export type DocumentOnTypeFormattingOptions = {
|
|
1265
|
+
firstTriggerCharacter: string;
|
|
1266
|
+
moreTriggerCharacter?: string[];
|
|
1267
|
+
};
|
|
1268
|
+
export type RenameOptions = {
|
|
1269
|
+
workDoneProgress?: boolean;
|
|
1270
|
+
prepareProvider?: boolean;
|
|
1271
|
+
};
|
|
1272
|
+
export type PrepareRenamePlaceholder = {
|
|
1273
|
+
range: Range;
|
|
1274
|
+
placeholder: string;
|
|
1275
|
+
};
|
|
1276
|
+
export type PrepareRenameDefaultBehavior = {
|
|
1277
|
+
defaultBehavior: boolean;
|
|
1278
|
+
};
|
|
1279
|
+
export type ExecuteCommandOptions = {
|
|
1280
|
+
workDoneProgress?: boolean;
|
|
1281
|
+
commands: string[];
|
|
1282
|
+
};
|
|
1283
|
+
export type WorkspaceEditMetadata = {
|
|
1284
|
+
isRefactoring?: boolean;
|
|
1285
|
+
};
|
|
1286
|
+
export type SemanticTokensLegend = {
|
|
1287
|
+
tokenTypes: string[];
|
|
1288
|
+
tokenModifiers: string[];
|
|
1289
|
+
};
|
|
1290
|
+
export type SemanticTokensFullDelta = {
|
|
1291
|
+
delta?: boolean;
|
|
1292
|
+
};
|
|
1293
|
+
export type OptionalVersionedTextDocumentIdentifier = {
|
|
1294
|
+
uri: string;
|
|
1295
|
+
version: number | null;
|
|
1296
|
+
};
|
|
1297
|
+
export type AnnotatedTextEdit = {
|
|
1298
|
+
range: Range;
|
|
1299
|
+
newText: string;
|
|
1300
|
+
annotationId: ChangeAnnotationIdentifier;
|
|
1301
|
+
};
|
|
1302
|
+
export type SnippetTextEdit = {
|
|
1303
|
+
range: Range;
|
|
1304
|
+
snippet: StringValue;
|
|
1305
|
+
annotationId?: ChangeAnnotationIdentifier;
|
|
1306
|
+
};
|
|
1307
|
+
export type ResourceOperation = {
|
|
1308
|
+
kind: string;
|
|
1309
|
+
annotationId?: ChangeAnnotationIdentifier;
|
|
1310
|
+
};
|
|
1311
|
+
export type CreateFileOptions = {
|
|
1312
|
+
overwrite?: boolean;
|
|
1313
|
+
ignoreIfExists?: boolean;
|
|
1314
|
+
};
|
|
1315
|
+
export type RenameFileOptions = {
|
|
1316
|
+
overwrite?: boolean;
|
|
1317
|
+
ignoreIfExists?: boolean;
|
|
1318
|
+
};
|
|
1319
|
+
export type DeleteFileOptions = {
|
|
1320
|
+
recursive?: boolean;
|
|
1321
|
+
ignoreIfNotExists?: boolean;
|
|
1322
|
+
};
|
|
1323
|
+
export type FileOperationPattern = {
|
|
1324
|
+
glob: string;
|
|
1325
|
+
matches?: 'file' | 'folder';
|
|
1326
|
+
options?: FileOperationPatternOptions;
|
|
1327
|
+
};
|
|
1328
|
+
export type WorkspaceFullDocumentDiagnosticReport = {
|
|
1329
|
+
kind: 'full';
|
|
1330
|
+
resultId?: string;
|
|
1331
|
+
items: Diagnostic[];
|
|
1332
|
+
uri: string;
|
|
1333
|
+
version: number | null;
|
|
1334
|
+
};
|
|
1335
|
+
export type WorkspaceUnchangedDocumentDiagnosticReport = {
|
|
1336
|
+
kind: 'unchanged';
|
|
1337
|
+
resultId: string;
|
|
1338
|
+
uri: string;
|
|
1339
|
+
version: number | null;
|
|
1340
|
+
};
|
|
1341
|
+
export type NotebookCell = {
|
|
1342
|
+
kind: 1 | 2;
|
|
1343
|
+
document: string;
|
|
1344
|
+
metadata?: LSPObject;
|
|
1345
|
+
executionSummary?: ExecutionSummary;
|
|
1346
|
+
};
|
|
1347
|
+
export type NotebookDocumentFilterWithNotebook = {
|
|
1348
|
+
notebook: string | NotebookDocumentFilter;
|
|
1349
|
+
cells?: NotebookCellLanguage[];
|
|
1350
|
+
};
|
|
1351
|
+
export type NotebookDocumentFilterWithCells = {
|
|
1352
|
+
notebook?: string | NotebookDocumentFilter;
|
|
1353
|
+
cells: NotebookCellLanguage[];
|
|
1354
|
+
};
|
|
1355
|
+
export type NotebookDocumentCellChanges = {
|
|
1356
|
+
structure?: NotebookDocumentCellChangeStructure;
|
|
1357
|
+
data?: NotebookCell[];
|
|
1358
|
+
textContent?: NotebookDocumentCellContentChanges[];
|
|
1359
|
+
};
|
|
1360
|
+
export type SelectedCompletionInfo = {
|
|
1361
|
+
range: Range;
|
|
1362
|
+
text: string;
|
|
1363
|
+
};
|
|
1364
|
+
export type ClientInfo = {
|
|
1365
|
+
name: string;
|
|
1366
|
+
version?: string;
|
|
1367
|
+
};
|
|
1368
|
+
export type ClientCapabilities = {
|
|
1369
|
+
workspace?: WorkspaceClientCapabilities;
|
|
1370
|
+
textDocument?: TextDocumentClientCapabilities;
|
|
1371
|
+
notebookDocument?: NotebookDocumentClientCapabilities;
|
|
1372
|
+
window?: WindowClientCapabilities;
|
|
1373
|
+
general?: GeneralClientCapabilities;
|
|
1374
|
+
experimental?: LSPAny;
|
|
1375
|
+
};
|
|
1376
|
+
export type TextDocumentSyncOptions = {
|
|
1377
|
+
openClose?: boolean;
|
|
1378
|
+
change?: 0 | 1 | 2;
|
|
1379
|
+
willSave?: boolean;
|
|
1380
|
+
willSaveWaitUntil?: boolean;
|
|
1381
|
+
save?: boolean | SaveOptions;
|
|
1382
|
+
};
|
|
1383
|
+
export type WorkspaceOptions = {
|
|
1384
|
+
workspaceFolders?: WorkspaceFoldersServerCapabilities;
|
|
1385
|
+
fileOperations?: FileOperationOptions;
|
|
1386
|
+
textDocumentContent?: TextDocumentContentOptions | TextDocumentContentRegistrationOptions;
|
|
1387
|
+
};
|
|
1388
|
+
export type TextDocumentContentChangePartial = {
|
|
1389
|
+
range: Range;
|
|
1390
|
+
rangeLength?: number;
|
|
1391
|
+
text: string;
|
|
1392
|
+
};
|
|
1393
|
+
export type TextDocumentContentChangeWholeDocument = {
|
|
1394
|
+
text: string;
|
|
1395
|
+
};
|
|
1396
|
+
export type CodeDescription = {
|
|
1397
|
+
href: string;
|
|
1398
|
+
};
|
|
1399
|
+
export type DiagnosticRelatedInformation = {
|
|
1400
|
+
location: Location;
|
|
1401
|
+
message: string;
|
|
1402
|
+
};
|
|
1403
|
+
export type EditRangeWithInsertReplace = {
|
|
1404
|
+
insert: Range;
|
|
1405
|
+
replace: Range;
|
|
1406
|
+
};
|
|
1407
|
+
export type ServerCompletionItemOptions = {
|
|
1408
|
+
labelDetailsSupport?: boolean;
|
|
1409
|
+
};
|
|
1410
|
+
export type MarkedStringWithLanguage = {
|
|
1411
|
+
language: string;
|
|
1412
|
+
value: string;
|
|
1413
|
+
};
|
|
1414
|
+
export type ParameterInformation = {
|
|
1415
|
+
label: string | [number, number];
|
|
1416
|
+
documentation?: string | MarkupContent;
|
|
1417
|
+
};
|
|
1418
|
+
export type CodeActionKindDocumentation = {
|
|
1419
|
+
kind: '' | 'quickfix' | 'refactor' | 'refactor.extract' | 'refactor.inline' | 'refactor.move' | 'refactor.rewrite' | 'source' | 'source.organizeImports' | 'source.fixAll' | 'notebook' | string;
|
|
1420
|
+
command: Command;
|
|
1421
|
+
};
|
|
1422
|
+
export type NotebookCellTextDocumentFilter = {
|
|
1423
|
+
notebook: string | NotebookDocumentFilter;
|
|
1424
|
+
language?: string;
|
|
1425
|
+
};
|
|
1426
|
+
export type FileOperationPatternOptions = {
|
|
1427
|
+
ignoreCase?: boolean;
|
|
1428
|
+
};
|
|
1429
|
+
export type ExecutionSummary = {
|
|
1430
|
+
executionOrder: number;
|
|
1431
|
+
success?: boolean;
|
|
1432
|
+
};
|
|
1433
|
+
export type NotebookCellLanguage = {
|
|
1434
|
+
language: string;
|
|
1435
|
+
};
|
|
1436
|
+
export type NotebookDocumentCellChangeStructure = {
|
|
1437
|
+
array: NotebookCellArrayChange;
|
|
1438
|
+
didOpen?: TextDocumentItem[];
|
|
1439
|
+
didClose?: TextDocumentIdentifier[];
|
|
1440
|
+
};
|
|
1441
|
+
export type NotebookDocumentCellContentChanges = {
|
|
1442
|
+
document: VersionedTextDocumentIdentifier;
|
|
1443
|
+
changes: TextDocumentContentChangeEvent[];
|
|
1444
|
+
};
|
|
1445
|
+
export type WorkspaceClientCapabilities = {
|
|
1446
|
+
applyEdit?: boolean;
|
|
1447
|
+
workspaceEdit?: WorkspaceEditClientCapabilities;
|
|
1448
|
+
didChangeConfiguration?: DidChangeConfigurationClientCapabilities;
|
|
1449
|
+
didChangeWatchedFiles?: DidChangeWatchedFilesClientCapabilities;
|
|
1450
|
+
symbol?: WorkspaceSymbolClientCapabilities;
|
|
1451
|
+
executeCommand?: ExecuteCommandClientCapabilities;
|
|
1452
|
+
workspaceFolders?: boolean;
|
|
1453
|
+
configuration?: boolean;
|
|
1454
|
+
semanticTokens?: SemanticTokensWorkspaceClientCapabilities;
|
|
1455
|
+
codeLens?: CodeLensWorkspaceClientCapabilities;
|
|
1456
|
+
fileOperations?: FileOperationClientCapabilities;
|
|
1457
|
+
inlineValue?: InlineValueWorkspaceClientCapabilities;
|
|
1458
|
+
inlayHint?: InlayHintWorkspaceClientCapabilities;
|
|
1459
|
+
diagnostics?: DiagnosticWorkspaceClientCapabilities;
|
|
1460
|
+
foldingRange?: FoldingRangeWorkspaceClientCapabilities;
|
|
1461
|
+
textDocumentContent?: TextDocumentContentClientCapabilities;
|
|
1462
|
+
};
|
|
1463
|
+
export type TextDocumentClientCapabilities = {
|
|
1464
|
+
synchronization?: TextDocumentSyncClientCapabilities;
|
|
1465
|
+
filters?: TextDocumentFilterClientCapabilities;
|
|
1466
|
+
completion?: CompletionClientCapabilities;
|
|
1467
|
+
hover?: HoverClientCapabilities;
|
|
1468
|
+
signatureHelp?: SignatureHelpClientCapabilities;
|
|
1469
|
+
declaration?: DeclarationClientCapabilities;
|
|
1470
|
+
definition?: DefinitionClientCapabilities;
|
|
1471
|
+
typeDefinition?: TypeDefinitionClientCapabilities;
|
|
1472
|
+
implementation?: ImplementationClientCapabilities;
|
|
1473
|
+
references?: ReferenceClientCapabilities;
|
|
1474
|
+
documentHighlight?: DocumentHighlightClientCapabilities;
|
|
1475
|
+
documentSymbol?: DocumentSymbolClientCapabilities;
|
|
1476
|
+
codeAction?: CodeActionClientCapabilities;
|
|
1477
|
+
codeLens?: CodeLensClientCapabilities;
|
|
1478
|
+
documentLink?: DocumentLinkClientCapabilities;
|
|
1479
|
+
colorProvider?: DocumentColorClientCapabilities;
|
|
1480
|
+
formatting?: DocumentFormattingClientCapabilities;
|
|
1481
|
+
rangeFormatting?: DocumentRangeFormattingClientCapabilities;
|
|
1482
|
+
onTypeFormatting?: DocumentOnTypeFormattingClientCapabilities;
|
|
1483
|
+
rename?: RenameClientCapabilities;
|
|
1484
|
+
foldingRange?: FoldingRangeClientCapabilities;
|
|
1485
|
+
selectionRange?: SelectionRangeClientCapabilities;
|
|
1486
|
+
publishDiagnostics?: PublishDiagnosticsClientCapabilities;
|
|
1487
|
+
callHierarchy?: CallHierarchyClientCapabilities;
|
|
1488
|
+
semanticTokens?: SemanticTokensClientCapabilities;
|
|
1489
|
+
linkedEditingRange?: LinkedEditingRangeClientCapabilities;
|
|
1490
|
+
moniker?: MonikerClientCapabilities;
|
|
1491
|
+
typeHierarchy?: TypeHierarchyClientCapabilities;
|
|
1492
|
+
inlineValue?: InlineValueClientCapabilities;
|
|
1493
|
+
inlayHint?: InlayHintClientCapabilities;
|
|
1494
|
+
diagnostic?: DiagnosticClientCapabilities;
|
|
1495
|
+
inlineCompletion?: InlineCompletionClientCapabilities;
|
|
1496
|
+
};
|
|
1497
|
+
export type NotebookDocumentClientCapabilities = {
|
|
1498
|
+
synchronization: NotebookDocumentSyncClientCapabilities;
|
|
1499
|
+
};
|
|
1500
|
+
export type WindowClientCapabilities = {
|
|
1501
|
+
workDoneProgress?: boolean;
|
|
1502
|
+
showMessage?: ShowMessageRequestClientCapabilities;
|
|
1503
|
+
showDocument?: ShowDocumentClientCapabilities;
|
|
1504
|
+
};
|
|
1505
|
+
export type GeneralClientCapabilities = {
|
|
1506
|
+
staleRequestSupport?: StaleRequestSupportOptions;
|
|
1507
|
+
regularExpressions?: RegularExpressionsClientCapabilities;
|
|
1508
|
+
markdown?: MarkdownClientCapabilities;
|
|
1509
|
+
positionEncodings?: ('utf-8' | 'utf-16' | 'utf-32' | string)[];
|
|
1510
|
+
};
|
|
1511
|
+
export type WorkspaceFoldersServerCapabilities = {
|
|
1512
|
+
supported?: boolean;
|
|
1513
|
+
changeNotifications?: string | boolean;
|
|
1514
|
+
};
|
|
1515
|
+
export type FileOperationOptions = {
|
|
1516
|
+
didCreate?: FileOperationRegistrationOptions;
|
|
1517
|
+
willCreate?: FileOperationRegistrationOptions;
|
|
1518
|
+
didRename?: FileOperationRegistrationOptions;
|
|
1519
|
+
willRename?: FileOperationRegistrationOptions;
|
|
1520
|
+
didDelete?: FileOperationRegistrationOptions;
|
|
1521
|
+
willDelete?: FileOperationRegistrationOptions;
|
|
1522
|
+
};
|
|
1523
|
+
export type RelativePattern = {
|
|
1524
|
+
baseUri: WorkspaceFolder | string;
|
|
1525
|
+
pattern: Pattern;
|
|
1526
|
+
};
|
|
1527
|
+
export type TextDocumentFilterLanguage = {
|
|
1528
|
+
language: string;
|
|
1529
|
+
scheme?: string;
|
|
1530
|
+
pattern?: GlobPattern;
|
|
1531
|
+
};
|
|
1532
|
+
export type TextDocumentFilterScheme = {
|
|
1533
|
+
language?: string;
|
|
1534
|
+
scheme: string;
|
|
1535
|
+
pattern?: GlobPattern;
|
|
1536
|
+
};
|
|
1537
|
+
export type TextDocumentFilterPattern = {
|
|
1538
|
+
language?: string;
|
|
1539
|
+
scheme?: string;
|
|
1540
|
+
pattern: GlobPattern;
|
|
1541
|
+
};
|
|
1542
|
+
export type NotebookDocumentFilterNotebookType = {
|
|
1543
|
+
notebookType: string;
|
|
1544
|
+
scheme?: string;
|
|
1545
|
+
pattern?: GlobPattern;
|
|
1546
|
+
};
|
|
1547
|
+
export type NotebookDocumentFilterScheme = {
|
|
1548
|
+
notebookType?: string;
|
|
1549
|
+
scheme: string;
|
|
1550
|
+
pattern?: GlobPattern;
|
|
1551
|
+
};
|
|
1552
|
+
export type NotebookDocumentFilterPattern = {
|
|
1553
|
+
notebookType?: string;
|
|
1554
|
+
scheme?: string;
|
|
1555
|
+
pattern: GlobPattern;
|
|
1556
|
+
};
|
|
1557
|
+
export type NotebookCellArrayChange = {
|
|
1558
|
+
start: number;
|
|
1559
|
+
deleteCount: number;
|
|
1560
|
+
cells?: NotebookCell[];
|
|
1561
|
+
};
|
|
1562
|
+
export type WorkspaceEditClientCapabilities = {
|
|
1563
|
+
documentChanges?: boolean;
|
|
1564
|
+
resourceOperations?: ('create' | 'rename' | 'delete')[];
|
|
1565
|
+
failureHandling?: 'abort' | 'transactional' | 'textOnlyTransactional' | 'undo';
|
|
1566
|
+
normalizesLineEndings?: boolean;
|
|
1567
|
+
changeAnnotationSupport?: ChangeAnnotationsSupportOptions;
|
|
1568
|
+
metadataSupport?: boolean;
|
|
1569
|
+
snippetEditSupport?: boolean;
|
|
1570
|
+
};
|
|
1571
|
+
export type DidChangeConfigurationClientCapabilities = {
|
|
1572
|
+
dynamicRegistration?: boolean;
|
|
1573
|
+
};
|
|
1574
|
+
export type DidChangeWatchedFilesClientCapabilities = {
|
|
1575
|
+
dynamicRegistration?: boolean;
|
|
1576
|
+
relativePatternSupport?: boolean;
|
|
1577
|
+
};
|
|
1578
|
+
export type WorkspaceSymbolClientCapabilities = {
|
|
1579
|
+
dynamicRegistration?: boolean;
|
|
1580
|
+
symbolKind?: ClientSymbolKindOptions;
|
|
1581
|
+
tagSupport?: ClientSymbolTagOptions;
|
|
1582
|
+
resolveSupport?: ClientSymbolResolveOptions;
|
|
1583
|
+
};
|
|
1584
|
+
export type ExecuteCommandClientCapabilities = {
|
|
1585
|
+
dynamicRegistration?: boolean;
|
|
1586
|
+
};
|
|
1587
|
+
export type SemanticTokensWorkspaceClientCapabilities = {
|
|
1588
|
+
refreshSupport?: boolean;
|
|
1589
|
+
};
|
|
1590
|
+
export type CodeLensWorkspaceClientCapabilities = {
|
|
1591
|
+
refreshSupport?: boolean;
|
|
1592
|
+
};
|
|
1593
|
+
export type FileOperationClientCapabilities = {
|
|
1594
|
+
dynamicRegistration?: boolean;
|
|
1595
|
+
didCreate?: boolean;
|
|
1596
|
+
willCreate?: boolean;
|
|
1597
|
+
didRename?: boolean;
|
|
1598
|
+
willRename?: boolean;
|
|
1599
|
+
didDelete?: boolean;
|
|
1600
|
+
willDelete?: boolean;
|
|
1601
|
+
};
|
|
1602
|
+
export type InlineValueWorkspaceClientCapabilities = {
|
|
1603
|
+
refreshSupport?: boolean;
|
|
1604
|
+
};
|
|
1605
|
+
export type InlayHintWorkspaceClientCapabilities = {
|
|
1606
|
+
refreshSupport?: boolean;
|
|
1607
|
+
};
|
|
1608
|
+
export type DiagnosticWorkspaceClientCapabilities = {
|
|
1609
|
+
refreshSupport?: boolean;
|
|
1610
|
+
};
|
|
1611
|
+
export type FoldingRangeWorkspaceClientCapabilities = {
|
|
1612
|
+
refreshSupport?: boolean;
|
|
1613
|
+
};
|
|
1614
|
+
export type TextDocumentContentClientCapabilities = {
|
|
1615
|
+
dynamicRegistration?: boolean;
|
|
1616
|
+
};
|
|
1617
|
+
export type TextDocumentSyncClientCapabilities = {
|
|
1618
|
+
dynamicRegistration?: boolean;
|
|
1619
|
+
willSave?: boolean;
|
|
1620
|
+
willSaveWaitUntil?: boolean;
|
|
1621
|
+
didSave?: boolean;
|
|
1622
|
+
};
|
|
1623
|
+
export type TextDocumentFilterClientCapabilities = {
|
|
1624
|
+
relativePatternSupport?: boolean;
|
|
1625
|
+
};
|
|
1626
|
+
export type CompletionClientCapabilities = {
|
|
1627
|
+
dynamicRegistration?: boolean;
|
|
1628
|
+
completionItem?: ClientCompletionItemOptions;
|
|
1629
|
+
completionItemKind?: ClientCompletionItemOptionsKind;
|
|
1630
|
+
insertTextMode?: 1 | 2;
|
|
1631
|
+
contextSupport?: boolean;
|
|
1632
|
+
completionList?: CompletionListCapabilities;
|
|
1633
|
+
};
|
|
1634
|
+
export type HoverClientCapabilities = {
|
|
1635
|
+
dynamicRegistration?: boolean;
|
|
1636
|
+
contentFormat?: ('plaintext' | 'markdown')[];
|
|
1637
|
+
};
|
|
1638
|
+
export type SignatureHelpClientCapabilities = {
|
|
1639
|
+
dynamicRegistration?: boolean;
|
|
1640
|
+
signatureInformation?: ClientSignatureInformationOptions;
|
|
1641
|
+
contextSupport?: boolean;
|
|
1642
|
+
};
|
|
1643
|
+
export type DeclarationClientCapabilities = {
|
|
1644
|
+
dynamicRegistration?: boolean;
|
|
1645
|
+
linkSupport?: boolean;
|
|
1646
|
+
};
|
|
1647
|
+
export type DefinitionClientCapabilities = {
|
|
1648
|
+
dynamicRegistration?: boolean;
|
|
1649
|
+
linkSupport?: boolean;
|
|
1650
|
+
};
|
|
1651
|
+
export type TypeDefinitionClientCapabilities = {
|
|
1652
|
+
dynamicRegistration?: boolean;
|
|
1653
|
+
linkSupport?: boolean;
|
|
1654
|
+
};
|
|
1655
|
+
export type ImplementationClientCapabilities = {
|
|
1656
|
+
dynamicRegistration?: boolean;
|
|
1657
|
+
linkSupport?: boolean;
|
|
1658
|
+
};
|
|
1659
|
+
export type ReferenceClientCapabilities = {
|
|
1660
|
+
dynamicRegistration?: boolean;
|
|
1661
|
+
};
|
|
1662
|
+
export type DocumentHighlightClientCapabilities = {
|
|
1663
|
+
dynamicRegistration?: boolean;
|
|
1664
|
+
};
|
|
1665
|
+
export type DocumentSymbolClientCapabilities = {
|
|
1666
|
+
dynamicRegistration?: boolean;
|
|
1667
|
+
symbolKind?: ClientSymbolKindOptions;
|
|
1668
|
+
hierarchicalDocumentSymbolSupport?: boolean;
|
|
1669
|
+
tagSupport?: ClientSymbolTagOptions;
|
|
1670
|
+
labelSupport?: boolean;
|
|
1671
|
+
};
|
|
1672
|
+
export type CodeActionClientCapabilities = {
|
|
1673
|
+
dynamicRegistration?: boolean;
|
|
1674
|
+
codeActionLiteralSupport?: ClientCodeActionLiteralOptions;
|
|
1675
|
+
isPreferredSupport?: boolean;
|
|
1676
|
+
disabledSupport?: boolean;
|
|
1677
|
+
dataSupport?: boolean;
|
|
1678
|
+
resolveSupport?: ClientCodeActionResolveOptions;
|
|
1679
|
+
honorsChangeAnnotations?: boolean;
|
|
1680
|
+
documentationSupport?: boolean;
|
|
1681
|
+
tagSupport?: CodeActionTagOptions;
|
|
1682
|
+
};
|
|
1683
|
+
export type CodeLensClientCapabilities = {
|
|
1684
|
+
dynamicRegistration?: boolean;
|
|
1685
|
+
resolveSupport?: ClientCodeLensResolveOptions;
|
|
1686
|
+
};
|
|
1687
|
+
export type DocumentLinkClientCapabilities = {
|
|
1688
|
+
dynamicRegistration?: boolean;
|
|
1689
|
+
tooltipSupport?: boolean;
|
|
1690
|
+
};
|
|
1691
|
+
export type DocumentColorClientCapabilities = {
|
|
1692
|
+
dynamicRegistration?: boolean;
|
|
1693
|
+
};
|
|
1694
|
+
export type DocumentFormattingClientCapabilities = {
|
|
1695
|
+
dynamicRegistration?: boolean;
|
|
1696
|
+
};
|
|
1697
|
+
export type DocumentRangeFormattingClientCapabilities = {
|
|
1698
|
+
dynamicRegistration?: boolean;
|
|
1699
|
+
rangesSupport?: boolean;
|
|
1700
|
+
};
|
|
1701
|
+
export type DocumentOnTypeFormattingClientCapabilities = {
|
|
1702
|
+
dynamicRegistration?: boolean;
|
|
1703
|
+
};
|
|
1704
|
+
export type RenameClientCapabilities = {
|
|
1705
|
+
dynamicRegistration?: boolean;
|
|
1706
|
+
prepareSupport?: boolean;
|
|
1707
|
+
prepareSupportDefaultBehavior?: 1;
|
|
1708
|
+
honorsChangeAnnotations?: boolean;
|
|
1709
|
+
};
|
|
1710
|
+
export type FoldingRangeClientCapabilities = {
|
|
1711
|
+
dynamicRegistration?: boolean;
|
|
1712
|
+
rangeLimit?: number;
|
|
1713
|
+
lineFoldingOnly?: boolean;
|
|
1714
|
+
foldingRangeKind?: ClientFoldingRangeKindOptions;
|
|
1715
|
+
foldingRange?: ClientFoldingRangeOptions;
|
|
1716
|
+
};
|
|
1717
|
+
export type SelectionRangeClientCapabilities = {
|
|
1718
|
+
dynamicRegistration?: boolean;
|
|
1719
|
+
};
|
|
1720
|
+
export type PublishDiagnosticsClientCapabilities = {
|
|
1721
|
+
relatedInformation?: boolean;
|
|
1722
|
+
tagSupport?: ClientDiagnosticsTagOptions;
|
|
1723
|
+
codeDescriptionSupport?: boolean;
|
|
1724
|
+
dataSupport?: boolean;
|
|
1725
|
+
versionSupport?: boolean;
|
|
1726
|
+
};
|
|
1727
|
+
export type CallHierarchyClientCapabilities = {
|
|
1728
|
+
dynamicRegistration?: boolean;
|
|
1729
|
+
};
|
|
1730
|
+
export type SemanticTokensClientCapabilities = {
|
|
1731
|
+
dynamicRegistration?: boolean;
|
|
1732
|
+
requests: ClientSemanticTokensRequestOptions;
|
|
1733
|
+
tokenTypes: string[];
|
|
1734
|
+
tokenModifiers: string[];
|
|
1735
|
+
formats: 'relative'[];
|
|
1736
|
+
overlappingTokenSupport?: boolean;
|
|
1737
|
+
multilineTokenSupport?: boolean;
|
|
1738
|
+
serverCancelSupport?: boolean;
|
|
1739
|
+
augmentsSyntaxTokens?: boolean;
|
|
1740
|
+
};
|
|
1741
|
+
export type LinkedEditingRangeClientCapabilities = {
|
|
1742
|
+
dynamicRegistration?: boolean;
|
|
1743
|
+
};
|
|
1744
|
+
export type MonikerClientCapabilities = {
|
|
1745
|
+
dynamicRegistration?: boolean;
|
|
1746
|
+
};
|
|
1747
|
+
export type TypeHierarchyClientCapabilities = {
|
|
1748
|
+
dynamicRegistration?: boolean;
|
|
1749
|
+
};
|
|
1750
|
+
export type InlineValueClientCapabilities = {
|
|
1751
|
+
dynamicRegistration?: boolean;
|
|
1752
|
+
};
|
|
1753
|
+
export type InlayHintClientCapabilities = {
|
|
1754
|
+
dynamicRegistration?: boolean;
|
|
1755
|
+
resolveSupport?: ClientInlayHintResolveOptions;
|
|
1756
|
+
};
|
|
1757
|
+
export type DiagnosticClientCapabilities = {
|
|
1758
|
+
relatedInformation?: boolean;
|
|
1759
|
+
tagSupport?: ClientDiagnosticsTagOptions;
|
|
1760
|
+
codeDescriptionSupport?: boolean;
|
|
1761
|
+
dataSupport?: boolean;
|
|
1762
|
+
dynamicRegistration?: boolean;
|
|
1763
|
+
relatedDocumentSupport?: boolean;
|
|
1764
|
+
markupMessageSupport?: boolean;
|
|
1765
|
+
};
|
|
1766
|
+
export type InlineCompletionClientCapabilities = {
|
|
1767
|
+
dynamicRegistration?: boolean;
|
|
1768
|
+
};
|
|
1769
|
+
export type NotebookDocumentSyncClientCapabilities = {
|
|
1770
|
+
dynamicRegistration?: boolean;
|
|
1771
|
+
executionSummarySupport?: boolean;
|
|
1772
|
+
};
|
|
1773
|
+
export type ShowMessageRequestClientCapabilities = {
|
|
1774
|
+
messageActionItem?: ClientShowMessageActionItemOptions;
|
|
1775
|
+
};
|
|
1776
|
+
export type ShowDocumentClientCapabilities = {
|
|
1777
|
+
support: boolean;
|
|
1778
|
+
};
|
|
1779
|
+
export type StaleRequestSupportOptions = {
|
|
1780
|
+
cancel: boolean;
|
|
1781
|
+
retryOnContentModified: string[];
|
|
1782
|
+
};
|
|
1783
|
+
export type RegularExpressionsClientCapabilities = {
|
|
1784
|
+
engine: RegularExpressionEngineKind;
|
|
1785
|
+
version?: string;
|
|
1786
|
+
};
|
|
1787
|
+
export type MarkdownClientCapabilities = {
|
|
1788
|
+
parser: string;
|
|
1789
|
+
version?: string;
|
|
1790
|
+
allowedTags?: string[];
|
|
1791
|
+
};
|
|
1792
|
+
export type ChangeAnnotationsSupportOptions = {
|
|
1793
|
+
groupsOnLabel?: boolean;
|
|
1794
|
+
};
|
|
1795
|
+
export type ClientSymbolKindOptions = {
|
|
1796
|
+
valueSet?: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26)[];
|
|
1797
|
+
};
|
|
1798
|
+
export type ClientSymbolTagOptions = {
|
|
1799
|
+
valueSet: 1[];
|
|
1800
|
+
};
|
|
1801
|
+
export type ClientSymbolResolveOptions = {
|
|
1802
|
+
properties: string[];
|
|
1803
|
+
};
|
|
1804
|
+
export type ClientCompletionItemOptions = {
|
|
1805
|
+
snippetSupport?: boolean;
|
|
1806
|
+
commitCharactersSupport?: boolean;
|
|
1807
|
+
documentationFormat?: ('plaintext' | 'markdown')[];
|
|
1808
|
+
deprecatedSupport?: boolean;
|
|
1809
|
+
preselectSupport?: boolean;
|
|
1810
|
+
tagSupport?: CompletionItemTagOptions;
|
|
1811
|
+
insertReplaceSupport?: boolean;
|
|
1812
|
+
resolveSupport?: ClientCompletionItemResolveOptions;
|
|
1813
|
+
insertTextModeSupport?: ClientCompletionItemInsertTextModeOptions;
|
|
1814
|
+
labelDetailsSupport?: boolean;
|
|
1815
|
+
};
|
|
1816
|
+
export type ClientCompletionItemOptionsKind = {
|
|
1817
|
+
valueSet?: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25)[];
|
|
1818
|
+
};
|
|
1819
|
+
export type CompletionListCapabilities = {
|
|
1820
|
+
itemDefaults?: string[];
|
|
1821
|
+
applyKindSupport?: boolean;
|
|
1822
|
+
};
|
|
1823
|
+
export type ClientSignatureInformationOptions = {
|
|
1824
|
+
documentationFormat?: ('plaintext' | 'markdown')[];
|
|
1825
|
+
parameterInformation?: ClientSignatureParameterInformationOptions;
|
|
1826
|
+
activeParameterSupport?: boolean;
|
|
1827
|
+
noActiveParameterSupport?: boolean;
|
|
1828
|
+
};
|
|
1829
|
+
export type ClientCodeActionLiteralOptions = {
|
|
1830
|
+
codeActionKind: ClientCodeActionKindOptions;
|
|
1831
|
+
};
|
|
1832
|
+
export type ClientCodeActionResolveOptions = {
|
|
1833
|
+
properties: string[];
|
|
1834
|
+
};
|
|
1835
|
+
export type CodeActionTagOptions = {
|
|
1836
|
+
valueSet: 1[];
|
|
1837
|
+
};
|
|
1838
|
+
export type ClientCodeLensResolveOptions = {
|
|
1839
|
+
properties: string[];
|
|
1840
|
+
};
|
|
1841
|
+
export type ClientFoldingRangeKindOptions = {
|
|
1842
|
+
valueSet?: ('comment' | 'imports' | 'region' | string)[];
|
|
1843
|
+
};
|
|
1844
|
+
export type ClientFoldingRangeOptions = {
|
|
1845
|
+
collapsedText?: boolean;
|
|
1846
|
+
};
|
|
1847
|
+
export type DiagnosticsCapabilities = {
|
|
1848
|
+
relatedInformation?: boolean;
|
|
1849
|
+
tagSupport?: ClientDiagnosticsTagOptions;
|
|
1850
|
+
codeDescriptionSupport?: boolean;
|
|
1851
|
+
dataSupport?: boolean;
|
|
1852
|
+
};
|
|
1853
|
+
export type ClientSemanticTokensRequestOptions = {
|
|
1854
|
+
range?: boolean | {};
|
|
1855
|
+
full?: boolean | ClientSemanticTokensRequestFullDelta;
|
|
1856
|
+
};
|
|
1857
|
+
export type ClientInlayHintResolveOptions = {
|
|
1858
|
+
properties: string[];
|
|
1859
|
+
};
|
|
1860
|
+
export type ClientShowMessageActionItemOptions = {
|
|
1861
|
+
additionalPropertiesSupport?: boolean;
|
|
1862
|
+
};
|
|
1863
|
+
export type CompletionItemTagOptions = {
|
|
1864
|
+
valueSet: 1[];
|
|
1865
|
+
};
|
|
1866
|
+
export type ClientCompletionItemResolveOptions = {
|
|
1867
|
+
properties: string[];
|
|
1868
|
+
};
|
|
1869
|
+
export type ClientCompletionItemInsertTextModeOptions = {
|
|
1870
|
+
valueSet: (1 | 2)[];
|
|
1871
|
+
};
|
|
1872
|
+
export type ClientSignatureParameterInformationOptions = {
|
|
1873
|
+
labelOffsetSupport?: boolean;
|
|
1874
|
+
};
|
|
1875
|
+
export type ClientCodeActionKindOptions = {
|
|
1876
|
+
valueSet: ('' | 'quickfix' | 'refactor' | 'refactor.extract' | 'refactor.inline' | 'refactor.move' | 'refactor.rewrite' | 'source' | 'source.organizeImports' | 'source.fixAll' | 'notebook' | string)[];
|
|
1877
|
+
};
|
|
1878
|
+
export type ClientDiagnosticsTagOptions = {
|
|
1879
|
+
valueSet: (1 | 2)[];
|
|
1880
|
+
};
|
|
1881
|
+
export type ClientSemanticTokensRequestFullDelta = {
|
|
1882
|
+
delta?: boolean;
|
|
1883
|
+
};
|
|
1884
|
+
export type Definition = Location | Location[];
|
|
1885
|
+
export type DefinitionLink = LocationLink;
|
|
1886
|
+
export type LSPArray = LSPAny[];
|
|
1887
|
+
export type LSPAny = LSPObject | LSPArray | string | number | boolean | null;
|
|
1888
|
+
export type Declaration = Location | Location[];
|
|
1889
|
+
export type DeclarationLink = LocationLink;
|
|
1890
|
+
export type InlineValue = InlineValueText | InlineValueVariableLookup | InlineValueEvaluatableExpression;
|
|
1891
|
+
export type DocumentDiagnosticReport = RelatedFullDocumentDiagnosticReport | RelatedUnchangedDocumentDiagnosticReport;
|
|
1892
|
+
export type PrepareRenameResult = Range | PrepareRenamePlaceholder | PrepareRenameDefaultBehavior;
|
|
1893
|
+
export type DocumentSelector = DocumentFilter[];
|
|
1894
|
+
export type ProgressToken = number | string;
|
|
1895
|
+
export type ChangeAnnotationIdentifier = string;
|
|
1896
|
+
export type WorkspaceDocumentDiagnosticReport = WorkspaceFullDocumentDiagnosticReport | WorkspaceUnchangedDocumentDiagnosticReport;
|
|
1897
|
+
export type TextDocumentContentChangeEvent = TextDocumentContentChangePartial | TextDocumentContentChangeWholeDocument;
|
|
1898
|
+
export type MarkedString = string | MarkedStringWithLanguage;
|
|
1899
|
+
export type DocumentFilter = TextDocumentFilter | NotebookCellTextDocumentFilter;
|
|
1900
|
+
export type LSPObject = {
|
|
1901
|
+
[key: string]: LSPAny;
|
|
1902
|
+
};
|
|
1903
|
+
export type GlobPattern = Pattern | RelativePattern;
|
|
1904
|
+
export type TextDocumentFilter = TextDocumentFilterLanguage | TextDocumentFilterScheme | TextDocumentFilterPattern;
|
|
1905
|
+
export type NotebookDocumentFilter = NotebookDocumentFilterNotebookType | NotebookDocumentFilterScheme | NotebookDocumentFilterPattern;
|
|
1906
|
+
export type Pattern = string;
|
|
1907
|
+
export type RegularExpressionEngineKind = string;
|
|
1908
|
+
export type TextDocumentContent = unknown;
|
|
19
1909
|
//# sourceMappingURL=types.d.ts.map
|