mirror of
https://github.com/c-cube/linol.git
synced 2025-12-09 12:45:53 -05:00
git-subtree-dir: thirdparty/lsp git-subtree-split: aae6986391a8519de3da6a7a341f2bd3376e0d2f
1.1 KiB
1.1 KiB
Merlin Jump Request
Description
This custom request allows Merlin-type code navigation in a source buffer.
Server capability
- propert name:
handleJump - property type:
boolean
Request
- method:
ocamllsp/jump - params:
JumpParamsextends TextDocumentPositionParams and is defined as follows:
export interface JumpParams extends TextDocumentPositionParams
{
/**
* The requested target of the jump, one of `fun`, `let`, `module`,
* `module-type`, `match`, `match-next-case`, `match-prev-case`.
*
* If omitted, all valid targets will be considered.
*/
target?: string;
}
Response
- result:
Jump
export interface TargetPosition {
/**
* The target's kind.
*/
target: string;
/**
* The corresponding position in the request's document.
*/
position: Position;
}
export interface Jump {
/**
* The list of possible targets to jump-to.
*/
jumps: TargetPosition[]
}