Skip to main content

inlay_hint_label_text

Function inlay_hint_label_text 

Source
pub fn inlay_hint_label_text(label: &InlayHintLabel) -> String
Expand description

Flatten an LSP InlayHintLabel into a single plain String. String variants return as-is; LabelParts(Vec<LabelPart>) concatenates each part’s value. Tooltip / command / location fields on label parts are ignored — they’re resolve / hover affordances, not a paint concern.

Phase 5.8.N: hoisted out of both renderer peers. TUI had it as lattice-ui-tui::render::inlay_hint_label_text; GPUI had the equivalent inlined in lattice-ui-gpui::window. Renderer- neutral since it operates purely on an LSP type; lives here because lattice-lsp is the canonical owner of lsp_types.