Skip to content

Commit d6b6123

Browse files
authored
vscode api: implement CodeActionKind.RefactorMove (#12039)
Signed-off-by: Jonah Iden <[email protected]>
1 parent 066b541 commit d6b6123

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/plugin-ext/src/plugin/types-impl.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,7 @@ export class CodeActionKind {
15551555
public static readonly Refactor = CodeActionKind.Empty.append('refactor');
15561556
public static readonly RefactorExtract = CodeActionKind.Refactor.append('extract');
15571557
public static readonly RefactorInline = CodeActionKind.Refactor.append('inline');
1558+
public static readonly RefactorMove = CodeActionKind.Refactor.append('move');
15581559
public static readonly RefactorRewrite = CodeActionKind.Refactor.append('rewrite');
15591560
public static readonly Source = CodeActionKind.Empty.append('source');
15601561
public static readonly SourceOrganizeImports = CodeActionKind.Source.append('organizeImports');

packages/plugin/src/theia.d.ts

+11
Original file line numberDiff line numberDiff line change
@@ -9184,6 +9184,17 @@ export module '@theia/plugin' {
91849184
*/
91859185
static readonly RefactorInline: CodeActionKind;
91869186

9187+
/**
9188+
* Base kind for refactoring inline actions: `refactor.move`
9189+
*
9190+
* Example move actions:
9191+
*
9192+
* - Move a function to a new file
9193+
* - Move a property between classes
9194+
* - Move method to base class
9195+
*/
9196+
static readonly RefactorMove: CodeActionKind;
9197+
91879198
/**
91889199
* Base kind for refactoring rewrite actions: `refactor.rewrite`
91899200
*

0 commit comments

Comments
 (0)