Skip to content

Commit

Permalink
Fixes #1761: No client capability for codeLens/resolve (#1979)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer authored Jul 9, 2024
1 parent e91fac9 commit e199a1a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions _specifications/lsp/3.18/language/codeLens.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_:
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit e199a1a

Please sign in to comment.