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.
Files changed (39) hide show
  1. package/lib/common/api.d.ts +0 -69
  2. package/lib/common/api.js +1 -26
  3. package/lib/common/connection.d.ts +26 -2
  4. package/lib/common/protocol.callHierarchy.d.ts +1 -1
  5. package/lib/common/protocol.colorProvider.d.ts +1 -1
  6. package/lib/common/protocol.configuration.d.ts +1 -14
  7. package/lib/common/protocol.configuration.js +1 -0
  8. package/lib/common/protocol.d.ts +326 -105
  9. package/lib/common/protocol.declaration.d.ts +2 -2
  10. package/lib/common/protocol.declaration.js +2 -2
  11. package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +79 -38
  12. package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +13 -8
  13. package/lib/common/protocol.foldingRange.d.ts +20 -26
  14. package/lib/common/protocol.foldingRange.js +1 -19
  15. package/lib/common/protocol.implementation.d.ts +2 -2
  16. package/lib/common/protocol.implementation.js +2 -2
  17. package/lib/common/protocol.inlayHint.d.ts +115 -0
  18. package/lib/common/protocol.inlayHint.js +44 -0
  19. package/lib/common/protocol.inlineValue.d.ts +91 -0
  20. package/lib/common/protocol.inlineValue.js +31 -0
  21. package/lib/common/protocol.js +88 -15
  22. package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
  23. package/lib/common/protocol.moniker.d.ts +13 -11
  24. package/lib/common/protocol.moniker.js +8 -8
  25. package/lib/common/{proposed.notebooks.d.ts → protocol.notebook.d.ts} +57 -53
  26. package/lib/common/{proposed.notebooks.js → protocol.notebook.js} +9 -5
  27. package/lib/common/protocol.progress.d.ts +2 -14
  28. package/lib/common/protocol.progress.js +4 -2
  29. package/lib/common/protocol.selectionRange.d.ts +2 -2
  30. package/lib/common/protocol.semanticTokens.d.ts +1 -1
  31. package/lib/common/protocol.typeDefinition.d.ts +1 -1
  32. package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +19 -10
  33. package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +7 -4
  34. package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
  35. package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
  36. package/metaModel.schema.json +686 -0
  37. package/package.json +3 -3
  38. package/lib/common/proposed.inlineValue.d.ts +0 -84
  39. package/lib/common/proposed.inlineValue.js +0 -29
@@ -1,7 +1,7 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { Declaration, DeclarationLink, Location, LocationLink } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType } from './messages';
4
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
4
+ import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
5
  /**
6
6
  * @since 3.14.0
7
7
  */
@@ -25,7 +25,7 @@ export interface DeclarationParams extends TextDocumentPositionParams, WorkDoneP
25
25
  }
26
26
  /**
27
27
  * A request to resolve the type definition locations of a symbol at a given text
28
- * document position. The request's parameter is of type [TextDocumentPositioParams]
28
+ * document position. The request's parameter is of type [TextDocumentPositionParams]
29
29
  * (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
30
30
  * or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
31
31
  * to such.
@@ -6,11 +6,11 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.DeclarationRequest = void 0;
8
8
  const messages_1 = require("./messages");
9
- // @ts-ignore: to avoid inlining LocatioLink as dynamic import
9
+ // @ts-ignore: to avoid inlining LocationLink as dynamic import
10
10
  let __noDynamicImport;
11
11
  /**
12
12
  * A request to resolve the type definition locations of a symbol at a given text
13
- * document position. The request's parameter is of type [TextDocumentPositioParams]
13
+ * document position. The request's parameter is of type [TextDocumentPositionParams]
14
14
  * (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
15
15
  * or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
16
16
  * to such.
@@ -1,9 +1,12 @@
1
1
  import { RequestHandler0, RequestHandler, ProgressType } from 'vscode-jsonrpc';
2
2
  import { TextDocumentIdentifier, Diagnostic, DocumentUri, integer } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType0, ProtocolRequestType } from './messages';
4
- import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
4
+ import type { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions } from './protocol';
5
5
  /**
6
- * @since 3.17.0 - proposed state
6
+ * Client capabilities specific to diagnostic pull requests.
7
+ *
8
+ * @since 3.17.0
9
+ * @proposed
7
10
  */
8
11
  export declare type DiagnosticClientCapabilities = {
9
12
  /**
@@ -17,15 +20,29 @@ export declare type DiagnosticClientCapabilities = {
17
20
  */
18
21
  relatedDocumentSupport?: boolean;
19
22
  };
20
- export declare type $DiagnosticClientCapabilities = {
21
- textDocument?: TextDocumentClientCapabilities & {
22
- diagnostic?: DiagnosticClientCapabilities;
23
- };
23
+ /**
24
+ * Workspace client capabilities specific to diagnostic pull requests.
25
+ *
26
+ * @since 3.17.0
27
+ * @proposed
28
+ */
29
+ export declare type DiagnosticWorkspaceClientCapabilities = {
30
+ /**
31
+ * Whether the client implementation supports a refresh request sent from
32
+ * the server to the client.
33
+ *
34
+ * Note that this event is global and will force the client to refresh all
35
+ * pulled diagnostics currently shown. It should be used with absolute care and
36
+ * is useful for situation where a server for example detects a project wide
37
+ * change that requires such a calculation.
38
+ */
39
+ refreshSupport?: boolean;
24
40
  };
25
41
  /**
26
42
  * Diagnostic options.
27
43
  *
28
- * @since 3.17.0 - proposed state
44
+ * @since 3.17.0
45
+ * @proposed
29
46
  */
30
47
  export declare type DiagnosticOptions = WorkDoneProgressOptions & {
31
48
  /**
@@ -48,7 +65,8 @@ export declare type DiagnosticOptions = WorkDoneProgressOptions & {
48
65
  /**
49
66
  * Diagnostic registration options.
50
67
  *
51
- * @since 3.17.0 - proposed state
68
+ * @since 3.17.0
69
+ * @proposed
52
70
  */
53
71
  export declare type DiagnosticRegistrationOptions = TextDocumentRegistrationOptions & DiagnosticOptions & StaticRegistrationOptions;
54
72
  export declare type $DiagnosticServerCapabilities = {
@@ -57,13 +75,15 @@ export declare type $DiagnosticServerCapabilities = {
57
75
  /**
58
76
  * Cancellation data returned from a diagnostic request.
59
77
  *
60
- * @since 3.17.0 - proposed state
78
+ * @since 3.17.0
79
+ * @proposed
61
80
  */
62
81
  export declare type DiagnosticServerCancellationData = {
63
82
  retriggerRequest: boolean;
64
83
  };
65
84
  /**
66
- * @since 3.17.0 - proposed state
85
+ * @since 3.17.0
86
+ * @proposed
67
87
  */
68
88
  export declare namespace DiagnosticServerCancellationData {
69
89
  function is(value: any): value is DiagnosticServerCancellationData;
@@ -71,7 +91,8 @@ export declare namespace DiagnosticServerCancellationData {
71
91
  /**
72
92
  * Parameters of the document diagnostic request.
73
93
  *
74
- * @since 3.17.0 - proposed state
94
+ * @since 3.17.0
95
+ * @proposed
75
96
  */
76
97
  export declare type DocumentDiagnosticParams = WorkDoneProgressParams & PartialResultParams & {
77
98
  /**
@@ -90,30 +111,33 @@ export declare type DocumentDiagnosticParams = WorkDoneProgressParams & PartialR
90
111
  /**
91
112
  * The document diagnostic report kinds.
92
113
  *
93
- * @since 3.17.0 - proposed state
114
+ * @since 3.17.0
115
+ * @proposed
94
116
  */
95
- export declare enum DocumentDiagnosticReportKind {
117
+ export declare namespace DocumentDiagnosticReportKind {
96
118
  /**
97
119
  * A diagnostic report with a full
98
120
  * set of problems.
99
121
  */
100
- full = "full",
122
+ const full = "full";
101
123
  /**
102
124
  * A report indicating that the last
103
125
  * returned report is still accurate.
104
126
  */
105
- unChanged = "unChanged"
127
+ const unchanged = "unchanged";
106
128
  }
129
+ export declare type DocumentDiagnosticReportKind = 'full' | 'unchanged';
107
130
  /**
108
131
  * A diagnostic report with a full set of problems.
109
132
  *
110
- * @since 3.17.0 - proposed state
133
+ * @since 3.17.0
134
+ * @proposed
111
135
  */
112
136
  export declare type FullDocumentDiagnosticReport = {
113
137
  /**
114
138
  * A full document diagnostic report.
115
139
  */
116
- kind: DocumentDiagnosticReportKind.full;
140
+ kind: typeof DocumentDiagnosticReportKind.full;
117
141
  /**
118
142
  * An optional result id. If provided it will
119
143
  * be sent on the next diagnostic request for the
@@ -128,7 +152,8 @@ export declare type FullDocumentDiagnosticReport = {
128
152
  /**
129
153
  * A full diagnostic report with a set of related documents.
130
154
  *
131
- * @since 3.17.0 - proposed state
155
+ * @since 3.17.0
156
+ * @proposed
132
157
  */
133
158
  export declare type RelatedFullDocumentDiagnosticReport = FullDocumentDiagnosticReport & {
134
159
  /**
@@ -138,17 +163,19 @@ export declare type RelatedFullDocumentDiagnosticReport = FullDocumentDiagnostic
138
163
  * such a language is C/C++ where marco definitions in a file
139
164
  * a.cpp and result in errors in a header file b.hpp.
140
165
  *
141
- * @since 3.17.0 - proposed state
166
+ * @since 3.17.0
167
+ * @proposed
142
168
  */
143
169
  relatedDocuments?: {
144
- [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
170
+ [uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
145
171
  };
146
172
  };
147
173
  /**
148
174
  * A diagnostic report indicating that the last returned
149
175
  * report is still accurate.
150
176
  *
151
- * @since 3.17.0 - proposed state
177
+ * @since 3.17.0
178
+ * @proposed
152
179
  */
153
180
  export declare type UnchangedDocumentDiagnosticReport = {
154
181
  /**
@@ -157,7 +184,7 @@ export declare type UnchangedDocumentDiagnosticReport = {
157
184
  * only return `unchanged` if result ids are
158
185
  * provided.
159
186
  */
160
- kind: DocumentDiagnosticReportKind.unChanged;
187
+ kind: typeof DocumentDiagnosticReportKind.unchanged;
161
188
  /**
162
189
  * A result id which will be sent on the next
163
190
  * diagnostic request for the same document.
@@ -167,7 +194,8 @@ export declare type UnchangedDocumentDiagnosticReport = {
167
194
  /**
168
195
  * An unchanged diagnostic report with a set of related documents.
169
196
  *
170
- * @since 3.17.0 - proposed state
197
+ * @since 3.17.0
198
+ * @proposed
171
199
  */
172
200
  export declare type RelatedUnchangedDocumentDiagnosticReport = UnchangedDocumentDiagnosticReport & {
173
201
  /**
@@ -177,10 +205,11 @@ export declare type RelatedUnchangedDocumentDiagnosticReport = UnchangedDocument
177
205
  * such a language is C/C++ where marco definitions in a file
178
206
  * a.cpp and result in errors in a header file b.hpp.
179
207
  *
180
- * @since 3.17.0 - proposed state
208
+ * @since 3.17.0
209
+ * @proposed
181
210
  */
182
211
  relatedDocuments?: {
183
- [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
212
+ [uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
184
213
  };
185
214
  };
186
215
  /**
@@ -190,23 +219,26 @@ export declare type RelatedUnchangedDocumentDiagnosticReport = UnchangedDocument
190
219
  * has changed in terms of diagnostics in comparison to the last
191
220
  * pull request.
192
221
  *
193
- * @since 3.17.0 - proposed state
222
+ * @since 3.17.0
223
+ * @proposed
194
224
  */
195
225
  export declare type DocumentDiagnosticReport = RelatedFullDocumentDiagnosticReport | RelatedUnchangedDocumentDiagnosticReport;
196
226
  /**
197
227
  * A partial result for a document diagnostic report.
198
228
  *
199
- * @since 3.17.0 - proposed state
229
+ * @since 3.17.0
230
+ * @proposed
200
231
  */
201
232
  export declare type DocumentDiagnosticReportPartialResult = {
202
233
  relatedDocuments: {
203
- [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
234
+ [uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
204
235
  };
205
236
  };
206
237
  /**
207
238
  * The document diagnostic request definition.
208
239
  *
209
- * @since 3.17.0 - proposed state
240
+ * @since 3.17.0
241
+ * @proposed
210
242
  */
211
243
  export declare namespace DocumentDiagnosticRequest {
212
244
  const method: 'textDocument/diagnostic';
@@ -217,7 +249,8 @@ export declare namespace DocumentDiagnosticRequest {
217
249
  /**
218
250
  * A previous result id in a workspace pull request.
219
251
  *
220
- * @since 3.17.0 - proposed state
252
+ * @since 3.17.0
253
+ * @proposed
221
254
  */
222
255
  export declare type PreviousResultId = {
223
256
  /**
@@ -233,7 +266,8 @@ export declare type PreviousResultId = {
233
266
  /**
234
267
  * Parameters of the workspace diagnostic request.
235
268
  *
236
- * @since 3.17.0 - proposed state
269
+ * @since 3.17.0
270
+ * @proposed
237
271
  */
238
272
  export declare type WorkspaceDiagnosticParams = WorkDoneProgressParams & PartialResultParams & {
239
273
  /**
@@ -249,7 +283,8 @@ export declare type WorkspaceDiagnosticParams = WorkDoneProgressParams & Partial
249
283
  /**
250
284
  * A full document diagnostic report for a workspace diagnostic result.
251
285
  *
252
- * @since 3.17.0 - proposed state
286
+ * @since 3.17.0
287
+ * @proposed
253
288
  */
254
289
  export declare type WorkspaceFullDocumentDiagnosticReport = FullDocumentDiagnosticReport & {
255
290
  /**
@@ -265,7 +300,8 @@ export declare type WorkspaceFullDocumentDiagnosticReport = FullDocumentDiagnost
265
300
  /**
266
301
  * An unchanged document diagnostic report for a workspace diagnostic result.
267
302
  *
268
- * @since 3.17.0 - proposed state
303
+ * @since 3.17.0
304
+ * @proposed
269
305
  */
270
306
  export declare type WorkspaceUnchangedDocumentDiagnosticReport = UnchangedDocumentDiagnosticReport & {
271
307
  /**
@@ -281,13 +317,15 @@ export declare type WorkspaceUnchangedDocumentDiagnosticReport = UnchangedDocume
281
317
  /**
282
318
  * A workspace diagnostic document report.
283
319
  *
284
- * @since 3.17.0 - proposed state
320
+ * @since 3.17.0
321
+ * @proposed
285
322
  */
286
323
  export declare type WorkspaceDocumentDiagnosticReport = WorkspaceFullDocumentDiagnosticReport | WorkspaceUnchangedDocumentDiagnosticReport;
287
324
  /**
288
325
  * A workspace diagnostic report.
289
326
  *
290
- * @since 3.17.0 - proposed state
327
+ * @since 3.17.0
328
+ * @proposed
291
329
  */
292
330
  export declare type WorkspaceDiagnosticReport = {
293
331
  items: WorkspaceDocumentDiagnosticReport[];
@@ -295,7 +333,8 @@ export declare type WorkspaceDiagnosticReport = {
295
333
  /**
296
334
  * A partial result for a workspace diagnostic report.
297
335
  *
298
- * @since 3.17.0 - proposed state
336
+ * @since 3.17.0
337
+ * @proposed
299
338
  */
300
339
  export declare type WorkspaceDiagnosticReportPartialResult = {
301
340
  items: WorkspaceDocumentDiagnosticReport[];
@@ -303,7 +342,8 @@ export declare type WorkspaceDiagnosticReportPartialResult = {
303
342
  /**
304
343
  * The workspace diagnostic request definition.
305
344
  *
306
- * @since 3.17.0 - proposed state
345
+ * @since 3.17.0
346
+ * @proposed
307
347
  */
308
348
  export declare namespace WorkspaceDiagnosticRequest {
309
349
  const method: 'workspace/diagnostic';
@@ -314,7 +354,8 @@ export declare namespace WorkspaceDiagnosticRequest {
314
354
  /**
315
355
  * The diagnostic refresh request definition.
316
356
  *
317
- * @since 3.17.0 - proposed state
357
+ * @since 3.17.0
358
+ * @proposed
318
359
  */
319
360
  export declare namespace DiagnosticRefreshRequest {
320
361
  const method: `workspace/diagnostic/refresh`;
@@ -9,7 +9,8 @@ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
9
9
  const Is = require("./utils/is");
10
10
  const messages_1 = require("./messages");
11
11
  /**
12
- * @since 3.17.0 - proposed state
12
+ * @since 3.17.0
13
+ * @proposed
13
14
  */
14
15
  var DiagnosticServerCancellationData;
15
16
  (function (DiagnosticServerCancellationData) {
@@ -22,7 +23,8 @@ var DiagnosticServerCancellationData;
22
23
  /**
23
24
  * The document diagnostic report kinds.
24
25
  *
25
- * @since 3.17.0 - proposed state
26
+ * @since 3.17.0
27
+ * @proposed
26
28
  */
27
29
  var DocumentDiagnosticReportKind;
28
30
  (function (DocumentDiagnosticReportKind) {
@@ -30,17 +32,18 @@ var DocumentDiagnosticReportKind;
30
32
  * A diagnostic report with a full
31
33
  * set of problems.
32
34
  */
33
- DocumentDiagnosticReportKind["full"] = "full";
35
+ DocumentDiagnosticReportKind.full = 'full';
34
36
  /**
35
37
  * A report indicating that the last
36
38
  * returned report is still accurate.
37
39
  */
38
- DocumentDiagnosticReportKind["unChanged"] = "unChanged";
40
+ DocumentDiagnosticReportKind.unchanged = 'unchanged';
39
41
  })(DocumentDiagnosticReportKind = exports.DocumentDiagnosticReportKind || (exports.DocumentDiagnosticReportKind = {}));
40
42
  /**
41
43
  * The document diagnostic request definition.
42
44
  *
43
- * @since 3.17.0 - proposed state
45
+ * @since 3.17.0
46
+ * @proposed
44
47
  */
45
48
  var DocumentDiagnosticRequest;
46
49
  (function (DocumentDiagnosticRequest) {
@@ -51,7 +54,8 @@ var DocumentDiagnosticRequest;
51
54
  /**
52
55
  * The workspace diagnostic request definition.
53
56
  *
54
- * @since 3.17.0 - proposed state
57
+ * @since 3.17.0
58
+ * @proposed
55
59
  */
56
60
  var WorkspaceDiagnosticRequest;
57
61
  (function (WorkspaceDiagnosticRequest) {
@@ -62,11 +66,12 @@ var WorkspaceDiagnosticRequest;
62
66
  /**
63
67
  * The diagnostic refresh request definition.
64
68
  *
65
- * @since 3.17.0 - proposed state
69
+ * @since 3.17.0
70
+ * @proposed
66
71
  */
67
72
  var DiagnosticRefreshRequest;
68
73
  (function (DiagnosticRefreshRequest) {
69
74
  DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
70
75
  DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
71
76
  })(DiagnosticRefreshRequest = exports.DiagnosticRefreshRequest || (exports.DiagnosticRefreshRequest = {}));
72
- //# sourceMappingURL=proposed.diagnostic.js.map
77
+ //# sourceMappingURL=protocol.diagnostic.js.map
@@ -1,46 +1,40 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { TextDocumentIdentifier, uinteger, FoldingRange } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType } from './messages';
4
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
4
+ import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
5
  export interface FoldingRangeClientCapabilities {
6
6
  /**
7
- * Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
8
- * the client supports the new `FoldingRangeRegistrationOptions` return value for the corresponding server
9
- * capability as well.
7
+ * Whether implementation supports dynamic registration for folding range
8
+ * providers. If this is set to `true` the client supports the new
9
+ * `FoldingRangeRegistrationOptions` return value for the corresponding
10
+ * server capability as well.
10
11
  */
11
12
  dynamicRegistration?: boolean;
12
13
  /**
13
- * The maximum number of folding ranges that the client prefers to receive per document. The value serves as a
14
- * hint, servers are free to follow the limit.
14
+ * The maximum number of folding ranges that the client prefers to receive
15
+ * per document. The value serves as a hint, servers are free to follow the
16
+ * limit.
15
17
  */
16
18
  rangeLimit?: uinteger;
17
19
  /**
18
- * If set, the client signals that it only supports folding complete lines. If set, client will
19
- * ignore specified `startCharacter` and `endCharacter` properties in a FoldingRange.
20
+ * If set, the client signals that it only supports folding complete lines.
21
+ * If set, client will ignore specified `startCharacter` and `endCharacter`
22
+ * properties in a FoldingRange.
20
23
  */
21
24
  lineFoldingOnly?: boolean;
25
+ /**
26
+ * If set, the client signals that it supports setting collapsedText on
27
+ * folding ranges to display instead of the default text.
28
+ *
29
+ * @since 3.17.0
30
+ * @proposed
31
+ */
32
+ collapsedText?: boolean;
22
33
  }
23
34
  export interface FoldingRangeOptions extends WorkDoneProgressOptions {
24
35
  }
25
36
  export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
26
37
  }
27
- /**
28
- * Enum of known range kinds
29
- */
30
- export declare enum FoldingRangeKind {
31
- /**
32
- * Folding range for a comment
33
- */
34
- Comment = "comment",
35
- /**
36
- * Folding range for a imports or includes
37
- */
38
- Imports = "imports",
39
- /**
40
- * Folding range for a region (e.g. `#region`)
41
- */
42
- Region = "region"
43
- }
44
38
  /**
45
39
  * Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
46
40
  */
@@ -58,6 +52,6 @@ export interface FoldingRangeParams extends WorkDoneProgressParams, PartialResul
58
52
  */
59
53
  export declare namespace FoldingRangeRequest {
60
54
  const method: 'textDocument/foldingRange';
61
- const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], any, FoldingRangeRegistrationOptions>;
55
+ const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], void, FoldingRangeRegistrationOptions>;
62
56
  type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
63
57
  }
@@ -4,26 +4,8 @@
4
4
  * Licensed under the MIT License. See License.txt in the project root for license information.
5
5
  *--------------------------------------------------------------------------------------------*/
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.FoldingRangeRequest = exports.FoldingRangeKind = void 0;
7
+ exports.FoldingRangeRequest = void 0;
8
8
  const messages_1 = require("./messages");
9
- /**
10
- * Enum of known range kinds
11
- */
12
- var FoldingRangeKind;
13
- (function (FoldingRangeKind) {
14
- /**
15
- * Folding range for a comment
16
- */
17
- FoldingRangeKind["Comment"] = "comment";
18
- /**
19
- * Folding range for a imports or includes
20
- */
21
- FoldingRangeKind["Imports"] = "imports";
22
- /**
23
- * Folding range for a region (e.g. `#region`)
24
- */
25
- FoldingRangeKind["Region"] = "region";
26
- })(FoldingRangeKind = exports.FoldingRangeKind || (exports.FoldingRangeKind = {}));
27
9
  /**
28
10
  * A request to provide folding ranges in a document. The request's
29
11
  * parameter is of type [FoldingRangeParams](#FoldingRangeParams), the
@@ -1,7 +1,7 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { Definition, DefinitionLink, Location, LocationLink } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType } from './messages';
4
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
4
+ import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
5
  /**
6
6
  * @since 3.6.0
7
7
  */
@@ -27,7 +27,7 @@ export interface ImplementationParams extends TextDocumentPositionParams, WorkDo
27
27
  }
28
28
  /**
29
29
  * A request to resolve the implementation locations of a symbol at a given text
30
- * document position. The request's parameter is of type [TextDocumentPositioParams]
30
+ * document position. The request's parameter is of type [TextDocumentPositionParams]
31
31
  * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
32
32
  * Thenable that resolves to such.
33
33
  */
@@ -6,11 +6,11 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.ImplementationRequest = void 0;
8
8
  const messages_1 = require("./messages");
9
- // @ts-ignore: to avoid inlining LocatioLink as dynamic import
9
+ // @ts-ignore: to avoid inlining LocationLink as dynamic import
10
10
  let __noDynamicImport;
11
11
  /**
12
12
  * A request to resolve the implementation locations of a symbol at a given text
13
- * document position. The request's parameter is of type [TextDocumentPositioParams]
13
+ * document position. The request's parameter is of type [TextDocumentPositionParams]
14
14
  * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
15
15
  * Thenable that resolves to such.
16
16
  */
@@ -0,0 +1,115 @@
1
+ import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
2
+ import { Range, TextDocumentIdentifier, InlayHint } from 'vscode-languageserver-types';
3
+ import { ProtocolRequestType, ProtocolRequestType0 } from './messages';
4
+ import type { StaticRegistrationOptions, TextDocumentRegistrationOptions, WorkDoneProgressOptions, WorkDoneProgressParams } from './protocol';
5
+ /**
6
+ * Inlay hint client capabilities
7
+ *
8
+ * @since 3.17.0
9
+ * @proposed
10
+ */
11
+ export declare type InlayHintClientCapabilities = {
12
+ /**
13
+ * Whether inlay hints support dynamic registration.
14
+ */
15
+ dynamicRegistration?: boolean;
16
+ /**
17
+ * Indicates which properties a client can resolve lazily on a inlay
18
+ * hint.
19
+ */
20
+ resolveSupport?: {
21
+ /**
22
+ * The properties that a client can resolve lazily.
23
+ */
24
+ properties: string[];
25
+ };
26
+ };
27
+ /**
28
+ * Client workspace capabilities specific to inlay hints.
29
+ *
30
+ * @since 3.17.0
31
+ * @proposed
32
+ */
33
+ export declare type InlayHintWorkspaceClientCapabilities = {
34
+ /**
35
+ * Whether the client implementation supports a refresh request sent from
36
+ * the server to the client.
37
+ *
38
+ * Note that this event is global and will force the client to refresh all
39
+ * inlay hints currently shown. It should be used with absolute care and
40
+ * is useful for situation where a server for example detects a project wide
41
+ * change that requires such a calculation.
42
+ */
43
+ refreshSupport?: boolean;
44
+ };
45
+ /**
46
+ * Inlay hint options used during static registration.
47
+ *
48
+ * @since 3.17.0
49
+ * @proposed
50
+ */
51
+ export declare type InlayHintOptions = WorkDoneProgressOptions & {
52
+ /**
53
+ * The server provides support to resolve additional
54
+ * information for an inlay hint item.
55
+ */
56
+ resolveProvider?: boolean;
57
+ };
58
+ /**
59
+ * Inlay hint options used during static or dynamic registration.
60
+ *
61
+ * @since 3.17.0
62
+ * @proposed
63
+ */
64
+ export declare type InlayHintRegistrationOptions = InlayHintOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
65
+ /**
66
+ * A parameter literal used in inlay hints requests.
67
+ *
68
+ * @since 3.17.0
69
+ * @proposed
70
+ */
71
+ export declare type InlayHintParams = WorkDoneProgressParams & {
72
+ /**
73
+ * The text document.
74
+ */
75
+ textDocument: TextDocumentIdentifier;
76
+ /**
77
+ * The document range for which inlay hints should be computed.
78
+ */
79
+ range: Range;
80
+ };
81
+ /**
82
+ * A request to provide inlay hints in a document. The request's parameter is of
83
+ * type [InlayHintsParams](#InlayHintsParams), the response is of type
84
+ * [InlayHint[]](#InlayHint[]) or a Thenable that resolves to such.
85
+ *
86
+ * @since 3.17.0
87
+ * @proposed
88
+ */
89
+ export declare namespace InlayHintRequest {
90
+ const method: 'textDocument/inlayHint';
91
+ const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], void, InlayHintRegistrationOptions>;
92
+ type HandlerSignature = RequestHandler<InlayHintParams, InlayHint[] | null, void>;
93
+ }
94
+ /**
95
+ * A request to resolve additional properties for a inlay hint.
96
+ * The request's parameter is of type [InlayHint](#InlayHint), the response is
97
+ * of type [InlayHint](#InlayHint) or a Thenable that resolves to such.
98
+ *
99
+ * @since 3.17.0
100
+ * @proposed
101
+ */
102
+ export declare namespace InlayHintResolveRequest {
103
+ const method: 'inlayHint/resolve';
104
+ const type: ProtocolRequestType<InlayHint, InlayHint, never, void, void>;
105
+ type HandlerSignature = RequestHandler<InlayHint, InlayHint, void>;
106
+ }
107
+ /**
108
+ * @since 3.17.0
109
+ * @proposed
110
+ */
111
+ export declare namespace InlayHintRefreshRequest {
112
+ const method: `workspace/inlayHint/refresh`;
113
+ const type: ProtocolRequestType0<void, void, void, void>;
114
+ type HandlerSignature = RequestHandler0<void, void>;
115
+ }