A code lens represents a {@link 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 to two stages.
A code lens represents a {@link 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 to two stages.
(command code-lens)
The command this code lens represents.
Returns: Command | undefined
The command this code lens represents. **Returns:** `Command | undefined`
(range code-lens)
The range in which this code lens is valid. Should only span a single line.
Returns: Range
The range in which this code lens is valid. Should only span a single line. **Returns:** `Range`
(resolved? code-lens)
true
when there is a command associated.
Returns: boolean
`true` when there is a command associated. **Returns:** `boolean`
(set-command! code-lens value)
The command this code lens represents.
The command this code lens represents.
(set-range! code-lens value)
The range in which this code lens is valid. Should only span a single line.
The range in which this code lens is valid. Should only span a single line.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close