Struct lsp_types::InlayHintLabelPart
source · pub struct InlayHintLabelPart {
pub value: String,
pub tooltip: Option<InlayHintLabelPartTooltip>,
pub location: Option<Location>,
pub command: Option<Command>,
}
Expand description
An inlay hint label part allows for interactive and composite labels of inlay hints.
Fields§
§value: String
The value of this label part.
tooltip: Option<InlayHintLabelPartTooltip>
The tooltip text when you hover over this label part. Depending on
the client capability inlayHint.resolveSupport
clients might resolve
this property late using the resolve request.
location: Option<Location>
An optional source code location that represents this label part.
The editor will use this location for the hover and for code navigation features: This part will become a clickable link that resolves to the definition of the symbol at the given location (not necessarily the location itself), it shows the hover that shows at the given location, and it shows a context menu with further code navigation commands.
Depending on the client capability inlayHint.resolveSupport
clients
might resolve this property late using the resolve request.
command: Option<Command>
An optional command for this label part.
Depending on the client capability inlayHint.resolveSupport
clients
might resolve this property late using the resolve request.
Trait Implementations§
source§impl Clone for InlayHintLabelPart
impl Clone for InlayHintLabelPart
source§fn clone(&self) -> InlayHintLabelPart
fn clone(&self) -> InlayHintLabelPart
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more