View Source GenLSP.Enumerations.CodeActionKind (gen_lsp v0.10.0)
A set of predefined code action kinds
Link to this section Summary
Functions
Empty kind.
Base kind for quickfix actions: 'quickfix'
Base kind for refactoring actions: 'refactor'
Base kind for refactoring extraction actions: 'refactor.extract'
Base kind for refactoring inline actions: 'refactor.inline'
Base kind for refactoring rewrite actions: 'refactor.rewrite'
Base kind for source actions: source
Base kind for auto-fix source actions: source.fixAll
.
Base kind for an organize imports source action: source.organizeImports
Link to this section Types
@type t() :: String.t()
Link to this section Functions
@spec empty() :: String.t()
Empty kind.
@spec quick_fix() :: String.t()
Base kind for quickfix actions: 'quickfix'
@spec refactor() :: String.t()
Base kind for refactoring actions: 'refactor'
@spec refactor_extract() :: String.t()
Base kind for refactoring extraction actions: 'refactor.extract'
Example extract actions:
- Extract method
- Extract function
- Extract variable
- Extract interface from class
- ...
@spec refactor_inline() :: String.t()
Base kind for refactoring inline actions: 'refactor.inline'
Example inline actions:
- Inline function
- Inline variable
- Inline constant
- ...
@spec refactor_rewrite() :: String.t()
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
- ...
@spec source() :: String.t()
Base kind for source actions: source
Source code actions apply to the entire file.
@spec source_fix_all() :: String.t()
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.
@since 3.15.0
@spec source_organize_imports() :: String.t()
Base kind for an organize imports source action: source.organizeImports