@@ -225,11 +225,23 @@ public struct TextDocumentClientCapabilities: Hashable, Codable {
225
225
226
226
/// Capabilities specific to `SignatureInformation`.
227
227
public struct SignatureInformation : Hashable , Codable {
228
+ public struct ParameterInformation : Hashable , Codable {
229
+ /// The client supports processing label offsets instead of a simple label string.
230
+ var labelOffsetSupport : Bool ? = nil
231
+
232
+ public init ( labelOffsetSupport: Bool ? = nil ) {
233
+ self . labelOffsetSupport = labelOffsetSupport
234
+ }
235
+ }
236
+
228
237
/// Documentation formats supported by the client from most to least preferred.
229
- public var signatureInformation : [ MarkupKind ] ? = nil
238
+ public var documentationFormat : [ MarkupKind ] ? = nil
239
+
240
+ public var parameterInformation : ParameterInformation ? = nil
230
241
231
- public init ( signatureInformation: [ MarkupKind ] ? = nil ) {
232
- self . signatureInformation = signatureInformation
242
+ public init ( signatureInformation: [ MarkupKind ] ? = nil , parameterInformation: ParameterInformation ? = nil ) {
243
+ self . documentationFormat = signatureInformation
244
+ self . parameterInformation = parameterInformation
233
245
}
234
246
}
235
247
@@ -276,6 +288,19 @@ public struct TextDocumentClientCapabilities: Hashable, Codable {
276
288
}
277
289
}
278
290
291
+ public struct DynamicRegistrationLinkSupportCapability : Hashable , Codable {
292
+ /// Whether the client supports dynamic registaration of this request.
293
+ public var dynamicRegistration : Bool ? = nil
294
+
295
+ /// The client supports additional metadata in the form of declaration links.
296
+ public var linkSupport : Bool ? = nil
297
+
298
+ public init ( dynamicRegistration: Bool ? = nil , linkSupport: Bool ? ) {
299
+ self . dynamicRegistration = dynamicRegistration
300
+ self . linkSupport = linkSupport
301
+ }
302
+ }
303
+
279
304
/// Capabilities specific to the `textDocument/codeAction` request.
280
305
public struct CodeAction : Hashable , Codable {
281
306
@@ -294,24 +319,38 @@ public struct TextDocumentClientCapabilities: Hashable, Codable {
294
319
}
295
320
}
296
321
297
- /// Whether the client supports dynamic registaration of this request.
298
- public var dynamicRegistration : Bool ? = nil
299
-
300
322
public var codeActionKind : CodeActionKind
301
323
302
- public init ( dynamicRegistration: Bool ? = nil , codeActionKind: CodeActionKind ) {
303
- self . dynamicRegistration = dynamicRegistration
324
+ public init ( codeActionKind: CodeActionKind ) {
304
325
self . codeActionKind = codeActionKind
305
326
}
306
327
}
307
328
329
+ /// Whether the client supports dynamic registaration of this request.
330
+ public var dynamicRegistration : Bool ?
331
+
308
332
public var codeActionLiteralSupport : CodeActionLiteralSupport ? = nil
309
333
310
- public init ( codeActionLiteralSupport: CodeActionLiteralSupport ? = nil ) {
334
+ public init ( dynamicRegistration : Bool ? = nil , codeActionLiteralSupport: CodeActionLiteralSupport ? = nil ) {
311
335
self . codeActionLiteralSupport = codeActionLiteralSupport
312
336
}
313
337
}
314
338
339
+ /// Capabilities specific to `textDocument/rename`.
340
+ public struct Rename : Hashable , Codable {
341
+
342
+ /// Whether the client supports dynamic registaration of this request.
343
+ public var dynamicRegistration : Bool ?
344
+
345
+ /// The client supports testing for validity of rename operations before execution.
346
+ public var prepareSupport : Bool ?
347
+
348
+ public init ( dynamicRegistration: Bool ? = nil , prepareSupport: Bool ? = nil ) {
349
+ self . dynamicRegistration = dynamicRegistration
350
+ self . prepareSupport = prepareSupport
351
+ }
352
+ }
353
+
315
354
/// Capabilities specific to `textDocument/publishDiagnostics`.
316
355
public struct PublishDiagnostics : Hashable , Codable {
317
356
/// Whether the client accepts diagnostics with related information.
@@ -364,11 +403,13 @@ public struct TextDocumentClientCapabilities: Hashable, Codable {
364
403
365
404
public var onTypeFormatting : DynamicRegistrationCapability ? = nil
366
405
367
- public var definition : DynamicRegistrationCapability ? = nil
406
+ public var declaration : DynamicRegistrationLinkSupportCapability ? = nil
407
+
408
+ public var definition : DynamicRegistrationLinkSupportCapability ? = nil
368
409
369
- public var typeDefinition : DynamicRegistrationCapability ? = nil
410
+ public var typeDefinition : DynamicRegistrationLinkSupportCapability ? = nil
370
411
371
- public var implementation : DynamicRegistrationCapability ? = nil
412
+ public var implementation : DynamicRegistrationLinkSupportCapability ? = nil
372
413
373
414
public var codeAction : CodeAction ? = nil
374
415
@@ -384,13 +425,27 @@ public struct TextDocumentClientCapabilities: Hashable, Codable {
384
425
385
426
public var foldingRange : FoldingRange ? = nil
386
427
387
- public init ( synchronization: Synchronization ? = nil , completion: Completion ? = nil , hover: Hover ? = nil ,
388
- signatureHelp: SignatureHelp ? = nil , references: DynamicRegistrationCapability ? = nil , documentHighlight: DynamicRegistrationCapability ? = nil ,
389
- documentSymbol: DocumentSymbol ? = nil , formatting: DynamicRegistrationCapability ? = nil , rangeFormatting: DynamicRegistrationCapability ? = nil ,
390
- onTypeFormatting: DynamicRegistrationCapability ? = nil , definition: DynamicRegistrationCapability ? = nil , typeDefinition: DynamicRegistrationCapability ? = nil ,
391
- implementation: DynamicRegistrationCapability ? = nil , codeAction: CodeAction ? = nil , codeLens: DynamicRegistrationCapability ? = nil ,
392
- documentLink: DynamicRegistrationCapability ? = nil , colorProvider: DynamicRegistrationCapability ? = nil , rename: DynamicRegistrationCapability ? = nil ,
393
- publishDiagnostics: PublishDiagnostics ? = nil , foldingRange: FoldingRange ? = nil ) {
428
+ public init ( synchronization: Synchronization ? = nil ,
429
+ completion: Completion ? = nil ,
430
+ hover: Hover ? = nil ,
431
+ signatureHelp: SignatureHelp ? = nil ,
432
+ references: DynamicRegistrationCapability ? = nil ,
433
+ documentHighlight: DynamicRegistrationCapability ? = nil ,
434
+ documentSymbol: DocumentSymbol ? = nil ,
435
+ formatting: DynamicRegistrationCapability ? = nil ,
436
+ rangeFormatting: DynamicRegistrationCapability ? = nil ,
437
+ onTypeFormatting: DynamicRegistrationCapability ? = nil ,
438
+ declaration: DynamicRegistrationLinkSupportCapability ? = nil ,
439
+ definition: DynamicRegistrationLinkSupportCapability ? = nil ,
440
+ typeDefinition: DynamicRegistrationLinkSupportCapability ? = nil ,
441
+ implementation: DynamicRegistrationLinkSupportCapability ? = nil ,
442
+ codeAction: CodeAction ? = nil ,
443
+ codeLens: DynamicRegistrationCapability ? = nil ,
444
+ documentLink: DynamicRegistrationCapability ? = nil ,
445
+ colorProvider: DynamicRegistrationCapability ? = nil ,
446
+ rename: DynamicRegistrationCapability ? = nil ,
447
+ publishDiagnostics: PublishDiagnostics ? = nil ,
448
+ foldingRange: FoldingRange ? = nil ) {
394
449
self . synchronization = synchronization
395
450
self . completion = completion
396
451
self . hover = hover
@@ -401,6 +456,7 @@ public struct TextDocumentClientCapabilities: Hashable, Codable {
401
456
self . formatting = formatting
402
457
self . rangeFormatting = rangeFormatting
403
458
self . onTypeFormatting = onTypeFormatting
459
+ self . declaration = declaration
404
460
self . definition = definition
405
461
self . typeDefinition = typeDefinition
406
462
self . implementation = implementation
0 commit comments