CodeActionKind
in package
A set of predefined code action kinds.
Table of Contents
Constants
- EMPTY = ''
- Empty kind.
- QUICK_FIX = 'quickfix'
- Base kind for quickfix actions: 'quickfix'.
- REFACTOR = 'refactor'
- Base kind for refactoring actions: 'refactor'.
- REFACTOR_EXTRACT = 'refactor.extract'
- Base kind for refactoring extraction actions: 'refactor.extract'.
- REFACTOR_INLINE = 'refactor.inline'
- Base kind for refactoring inline actions: 'refactor.inline'.
- REFACTOR_REWRITE = 'refactor.rewrite'
- Base kind for refactoring rewrite actions: 'refactor.rewrite'.
- SOURCE = 'source'
- Base kind for source actions: `source`.
- SOURCE_FIX_ALL = 'source.fixAll'
- Base kind for a 'fix all' source action: `source.fixAll`.
- SOURCE_ORGANIZE_IMPORTS = 'source.organizeImports'
- Base kind for an organize imports source action: `source.organizeImports`.
Constants
EMPTY
Empty kind.
public
mixed
EMPTY
= ''
QUICK_FIX
Base kind for quickfix actions: 'quickfix'.
public
mixed
QUICK_FIX
= 'quickfix'
REFACTOR
Base kind for refactoring actions: 'refactor'.
public
mixed
REFACTOR
= 'refactor'
REFACTOR_EXTRACT
Base kind for refactoring extraction actions: 'refactor.extract'.
public
mixed
REFACTOR_EXTRACT
= 'refactor.extract'
Example extract actions:
- Extract method
- Extract function
- Extract variable
- Extract interface from class
- ...
REFACTOR_INLINE
Base kind for refactoring inline actions: 'refactor.inline'.
public
mixed
REFACTOR_INLINE
= 'refactor.inline'
Example inline actions:
- Inline function
- Inline variable
- Inline constant
- ...
REFACTOR_REWRITE
Base kind for refactoring rewrite actions: 'refactor.rewrite'.
public
mixed
REFACTOR_REWRITE
= '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`.
public
mixed
SOURCE
= 'source'
Source code actions apply to the entire file.
SOURCE_FIX_ALL
Base kind for a 'fix all' source action: `source.fixAll`.
public
mixed
SOURCE_FIX_ALL
= '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.
Tags
SOURCE_ORGANIZE_IMPORTS
Base kind for an organize imports source action: `source.organizeImports`.
public
mixed
SOURCE_ORGANIZE_IMPORTS
= 'source.organizeImports'