Implementation of CodeActionKind
enumeration from Language Server Protocol
DO NOT add new properties or methods to this class that are specific to Moonshine IDE or to a particular language. Create a subclass for new properties or create a utility function for methods.
See also:
Variables
inlineread 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
- ...
inlineread onlyRefactorInline:CodeActionKind = "refactor.inline"
Base kind for refactoring inline actions: 'refactor.inline'.
Example inline actions:
- Inline function
- Inline variable
- Inline constant
- ...
inlineread 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
- ...
inlineread onlySource:CodeActionKind = "source"
Base kind for source actions: source
.
Source code actions apply to the entire file.
inlineread onlySourceFixAll:CodeActionKind = "source.fixAll"
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.
inlineread onlySourceOrganizeImports:CodeActionKind = "source.organizeImports"
Base kind for an organize imports source action:
source.organizeImports
.