CodeActionKind

Kind of a code action.

Kinds are a hierarchical list of identifiers separated by ., e.g. "refactor.extract.function".

Code action kinds are used by the editor for UI elements such as the refactoring context menu. Users can also trigger code actions with a specific kind with the editor.action.codeAction command.

Online Documentation

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
external val value: String

String value of the kind, e.g. "refactor.extract.function".

Functions

Link copied to clipboard
external fun append(parts: String): CodeActionKind

Create a new kind by appending a more specific selector to the current kind.

Link copied to clipboard
external fun contains(other: CodeActionKind): Boolean

Checks if other is a sub-kind of this CodeActionKind.

Link copied to clipboard
external fun intersects(other: CodeActionKind): Boolean

Checks if this code action kind intersects other.