class LSProtocol::CodeLens
- LSProtocol::CodeLens
- Reference
- Object
Overview
A code lens represents a Command
that should be shown along with
source text, like the number of references, a way to run tests, etc.
A code lens is unresolved when no command is associated to it. For performance reasons the creation of a code lens and resolving should be done in two stages.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(range : Range | Nil, command : Command | Nil = nil, data : LSPAny | Nil = nil)
Instance Method Summary
-
#command : Command | Nil
The command this code lens represents.
-
#data : LSPAny | Nil
A data entry field that is preserved on a code lens item between a
CodeLensRequest
and aCodeLensResolveRequest
-
#range : Range
The range in which this code lens is valid.
Constructor Detail
Instance Method Detail
A data entry field that is preserved on a code lens item between
a CodeLensRequest
and a CodeLensResolveRequest
The range in which this code lens is valid. Should only span a single line.