CodeActionContext

langoustine.lsp.structures.CodeActionContext
See theCodeActionContext companion object
case class CodeActionContext(diagnostics: Vector[Diagnostic], only: Opt[Vector[CodeActionKind]], triggerKind: Opt[CodeActionTriggerKind])

Contains additional diagnostic information about the context in which a [[CodeActionProvider.provideCodeActions code action]] is run.

Value parameters

diagnostics

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.

only

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.

triggerKind

The reason why code actions were requested. since 3.17.0

Attributes

Companion
object
Source
structures.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product