Documentation

CodeActionContext
in package

Contains additional diagnostic information about the context in which a code action is run.

Table of Contents

Properties

$diagnostics  : array<string|int, Diagnostic>
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  : array<string|int, string>|null
Requested kind of actions to return.
$triggerKind  : int|null
The reason why code actions were requested.

Methods

__construct()  : mixed

Properties

$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.

public array<string|int, Diagnostic> $diagnostics

$only

Requested kind of actions to return.

public array<string|int, string>|null $only

Actions not of this kind are filtered out by the client before being shown. So servers can omit computing them.

Tags
see
CodeActionKind

Methods


        
On this page

Search results