fix: ServerCapability.documentHighlightProvider accepts DocumentHighlightRegistrationOptions too

This commit is contained in:
Sysix 2025-06-24 21:33:07 +02:00
parent f72ac036c1
commit 00a0953d78
6 changed files with 14 additions and 4 deletions

View file

@ -728,7 +728,8 @@ interface ServerCapabilities {
/**
* The server provides document highlight support.
*/
documentHighlightProvider?: boolean | DocumentHighlightOptions;
documentHighlightProvider?: boolean | DocumentHighlightOptions
| DocumentHighlightRegistrationOptions;
/**
* The server provides document symbol support.

View file

@ -22,7 +22,7 @@ export interface DocumentHighlightClientCapabilities {
_Server Capability_:
* property name (optional): `documentHighlightProvider`
* property type: `boolean | DocumentHighlightOptions` where `DocumentHighlightOptions` is defined as follows:
* property type: `boolean | DocumentHighlightOptions | DocumentHighlightRegistrationOptions` where `DocumentHighlightOptions` is defined as follows:
<div class="anchorHolder"><a href="#documentHighlightOptions" name="documentHighlightOptions" class="linkableAnchor"></a></div>

View file

@ -8315,6 +8315,10 @@
{
"kind": "reference",
"name": "DocumentHighlightOptions"
},
{
"kind": "reference",
"name": "DocumentHighlightRegistrationOptions"
}
]
},

View file

@ -756,7 +756,8 @@ interface ServerCapabilities {
/**
* The server provides document highlight support.
*/
documentHighlightProvider?: boolean | DocumentHighlightOptions;
documentHighlightProvider?: boolean | DocumentHighlightOptions
| DocumentHighlightRegistrationOptions;
/**
* The server provides document symbol support.

View file

@ -22,7 +22,7 @@ export interface DocumentHighlightClientCapabilities {
_Server Capability_:
* property name (optional): `documentHighlightProvider`
* property type: `boolean | DocumentHighlightOptions` where `DocumentHighlightOptions` is defined as follows:
* property type: `boolean | DocumentHighlightOptions | DocumentHighlightRegistrationOptions` where `DocumentHighlightOptions` is defined as follows:
<div class="anchorHolder"><a href="#documentHighlightOptions" name="documentHighlightOptions" class="linkableAnchor"></a></div>

View file

@ -8544,6 +8544,10 @@
{
"kind": "reference",
"name": "DocumentHighlightOptions"
},
{
"kind": "reference",
"name": "DocumentHighlightRegistrationOptions"
}
]
},