mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
parent
e91fac91f7
commit
e199a1a779
1 changed files with 22 additions and 0 deletions
|
|
@ -14,7 +14,25 @@ export interface CodeLensClientCapabilities {
|
|||
* Whether code lens supports dynamic registration.
|
||||
*/
|
||||
dynamicRegistration?: boolean;
|
||||
|
||||
/**
|
||||
* Whether the client supports resolving additional code lens
|
||||
* properties via a separate `codeLens/resolve` request.
|
||||
*
|
||||
* @since 3.18.0
|
||||
*/
|
||||
resolveSupport?: ClientCodeLensResolveOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 3.18.0
|
||||
*/
|
||||
export type ClientCodeLensResolveOptions = {
|
||||
/**
|
||||
* The properties that a client can resolve lazily.
|
||||
*/
|
||||
properties: string[];
|
||||
};
|
||||
```
|
||||
|
||||
_Server Capability_:
|
||||
|
|
@ -97,6 +115,10 @@ interface CodeLens {
|
|||
|
||||
The code lens resolve request is sent from the client to the server to resolve the command for a given code lens item.
|
||||
|
||||
_Client Capability_:
|
||||
* property name (optional): `textDocument.codeLens.resolveSupport`
|
||||
* property type: `ClientCodeLensResolveOptions`
|
||||
|
||||
_Request_:
|
||||
* method: `codeLens/resolve`
|
||||
* params: `CodeLens`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue