Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Symbol documentation

Platform spec feature

Symbol documentation

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

What this feature specifies

The extension and LSP must resolve a documentation URL for a symbol at a cursor position and open it in the system browser. Registry packages link to pckg docs; unknown symbols fall back to the Beskid book.

LSP executeCommand

CommandArgumentsResponse
beskid.symbol.getDocumentationUri{ uri: string, offset: number }{ url?: string }

Resolution rules:

  1. When the symbol belongs to a locked registry dependency, {registryBase}/docs/{package}@{version} (fragment optional for symbol anchor).
  2. Otherwise {bookBase}/book/ search or qualified-name path when mapped.
  3. Empty response when no documentation target exists.

Hover should append [View documentation](url) when url is present (modifier-click opens in browser).

Extension commands

CommandRule
beskid.openSymbolDocumentationUses active editor URI + selection offset; calls LSP command; vscode.env.openExternal when URL returned

Editor context menu should expose this command for beskid and beskid-proj resources.

No open decisions.

Articles