class LSP::CodeActionContext
- LSP::CodeActionContext
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
lsp/protocol/code_action_context.crConstructors
Instance Method Summary
-
#diagnostics : Array(Diagnostic)
An array of diagnostics known on the client side overlapping the range provided to the
textDocument/codeAction
request. -
#diagnostics=(diagnostics : Array(Diagnostic))
An array of diagnostics known on the client side overlapping the range provided to the
textDocument/codeAction
request. -
#only : Array(String) | Nil
Requested kind of actions to return.
-
#only=(only : Array(String) | Nil)
Requested kind of actions to return.
- #trigger_kind : CodeActionTriggerKind | Nil
- #trigger_kind=(trigger_kind : CodeActionTriggerKind | Nil)
Constructor Detail
Instance Method Detail
An array of diagnostics known on the client side overlapping the range
provided to the textDocument/codeAction
request. They are provided so
that the server knows which errors are currently presented to the user
for the given range. There is no guarantee that these accurately reflect
the error state of the resource. The primary parameter
to compute code actions is the provided range.
An array of diagnostics known on the client side overlapping the range
provided to the textDocument/codeAction
request. They are provided so
that the server knows which errors are currently presented to the user
for the given range. There is no guarantee that these accurately reflect
the error state of the resource. The primary parameter
to compute code actions is the provided range.
Requested kind of actions to return.
Actions not of this kind are filtered out by the client before being shown. So servers can omit computing them.
Requested kind of actions to return.
Actions not of this kind are filtered out by the client before being shown. So servers can omit computing them.