Enum lsp::types::CodeActionKind [−][src]
pub enum CodeActionKind { QuickFix, Refactor, RefactorExtract, RefactorInline, RefactorRewrite, Source, SourceOrganizeImports, }
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.
Variants
QuickFix
Base kind for quickfix actions: 'quickfix'
Refactor
Base kind for refactoring actions: 'refactor'
RefactorExtract
Base kind for refactoring extraction actions: 'refactor.extract'
Example extract actions:
- Extract method
- Extract function
- Extract variable
- Extract interface from class
- ...
RefactorInline
Base kind for refactoring inline actions: 'refactor.inline'
Example inline actions:
- Inline function
- Inline variable
- Inline constant
- ...
RefactorRewrite
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
- ...
Source
Base kind for source actions: source
Source code actions apply to the entire file.
SourceOrganizeImports
Base kind for an organize imports source action: source.organizeImports
Trait Implementations
impl Debug for CodeActionKind
[src]
impl Debug for CodeActionKind
Auto Trait Implementations
impl Send for CodeActionKind
impl Send for CodeActionKind
impl Sync for CodeActionKind
impl Sync for CodeActionKind