This custom request allows Merlin-type code navigation in a source buffer.
- propert name:
handleJump
- property type:
boolean
- method:
ocamllsp/jump
- params:
JumpParams
extends 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;
}
- 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[]
}