enum abstract CodeActionKind(String)
package languageServerProtocol
from String to String
import languageServerProtocol.Types
The kind of a code action.
Kinds are a hierarchical list of identifiers separated by ., e.g. "refactor.extract.function".
The set of kinds is open and client needs to announce the kinds it supports to the server during initialization.
This enum has a set of predefined code action kinds.
Static variables
staticinlineread onlyRefactor:CodeActionKind = "refactor"
Base kind for refactoring actions: 'refactor'
staticinlineread onlyRefactorExtract:CodeActionKind = "refactor.extract"
Base kind for refactoring extraction actions: 'refactor.extract'
Example extract actions:
- Extract method
- Extract function
- Extract variable
- Extract interface from class
- ...
staticinlineread onlyRefactorInline:CodeActionKind = "refactor.inline"
Base kind for refactoring inline actions: 'refactor.inline'
Example inline actions:
- Inline function
- Inline variable
- Inline constant
- ...
staticinlineread onlyRefactorRewrite:CodeActionKind = "refactor.rewrite"
Base kind for refactoring rewrite actions: 'refactor.rewrite'
Example rewrite actions:
- Convert JavaScript function to class
- Add or remove parameter
- Encapsulate field
- Make method static
- Move method to base class
- ...
staticinlineread onlySource:CodeActionKind = "source"
Base kind for source actions: source
Source code actions apply to the entire file.
staticinlineread onlySourceFixAll:CodeActionKind = "source.fixAll"
Base kind for auto-fix source actions: source.fixAll.
Fix all actions automatically fix errors that have a clear fix that do not require user input. They should not suppress errors or perform unsafe fixes such as generating new types or classes.
3.15.0
.staticinlineread onlySourceOrganizeImports:CodeActionKind = "source.organizeImports"
Base kind for an organize imports source action: source.organizeImports