Skip to main content

workspace_symbol_to_row

Function workspace_symbol_to_row 

Source
pub async fn workspace_symbol_to_row(
    handle: &ServerHandle,
    sym: WorkspaceSymbol,
    token: &CancellationToken,
) -> Option<SymbolRow>
Expand description

5.5.LSP.5: convert a modern (LSP 3.17+) WorkspaceSymbol into a SymbolRow. When the symbol’s location came back as the WorkspaceLocation (URI-only) variant, fires workspaceSymbol/resolve against the originating server to upgrade to a real Location with range. Returns None when the URI doesn’t map to a path; resolve failures fall back to (0, 0) so the row stays navigable.