Skip to content

requestDefinition

requestDefinition(client, request): Promise<DefinitionResult>

Issue a textDocument/definition request and normalize the response into a flat list of LanguageServerDefinitionTargets. The raw LSP union (Location, Location[], LocationLink[], or null) is hidden from callers so higher-level orchestration can work with a single shape.

LanguageServerFeatureRouter

DefinitionRequest

Promise<DefinitionResult>