pub struct CodeActionKind(/* private fields */);
Implementations§
Source§impl CodeActionKind
impl CodeActionKind
Sourcepub const EMPTY: CodeActionKind = _
pub const EMPTY: CodeActionKind = _
Empty kind.
Sourcepub const QUICKFIX: CodeActionKind = _
pub const QUICKFIX: CodeActionKind = _
Base kind for quickfix actions: ‘quickfix’
Sourcepub const REFACTOR: CodeActionKind = _
pub const REFACTOR: CodeActionKind = _
Base kind for refactoring actions: ‘refactor’
Sourcepub const REFACTOR_EXTRACT: CodeActionKind = _
pub const REFACTOR_EXTRACT: CodeActionKind = _
Base kind for refactoring extraction actions: ‘refactor.extract’
Example extract actions:
- Extract method
- Extract function
- Extract variable
- Extract interface from class
- …
Sourcepub const REFACTOR_INLINE: CodeActionKind = _
pub const REFACTOR_INLINE: CodeActionKind = _
Base kind for refactoring inline actions: ‘refactor.inline’
Example inline actions:
- Inline function
- Inline variable
- Inline constant
- …
Sourcepub const REFACTOR_REWRITE: CodeActionKind = _
pub const REFACTOR_REWRITE: CodeActionKind = _
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
- …
Sourcepub const SOURCE: CodeActionKind = _
pub const SOURCE: CodeActionKind = _
Base kind for source actions: source
Source code actions apply to the entire file.
Sourcepub const SOURCE_ORGANIZE_IMPORTS: CodeActionKind = _
pub const SOURCE_ORGANIZE_IMPORTS: CodeActionKind = _
Base kind for an organize imports source action: source.organizeImports
Sourcepub const SOURCE_FIX_ALL: CodeActionKind = _
pub const SOURCE_FIX_ALL: CodeActionKind = _
Base kind for a ‘fix all’ source action: 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.
@since 3.17.0
pub const fn new(tag: &'static str) -> Self
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for CodeActionKind
impl Clone for CodeActionKind
Source§fn clone(&self) -> CodeActionKind
fn clone(&self) -> CodeActionKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more