File tree 4 files changed +16
-2
lines changed
typescript-language-features/src/languageFeatures
vscode-api-tests/src/singlefolder-tests
4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const Extract_Interface = Object.freeze<CodeActionKind>({
135
135
} ) ;
136
136
137
137
const Move_NewFile = Object . freeze < CodeActionKind > ( {
138
- kind : vscode . CodeActionKind . Refactor . append ( 'move' ) . append ( 'newFile' ) ,
138
+ kind : vscode . CodeActionKind . RefactorMove . append ( 'newFile' ) ,
139
139
matches : refactor => refactor . name . startsWith ( 'Move to a new file' )
140
140
} ) ;
141
141
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ suite('vscode API - types', () => {
20
20
assert . ok ( vscode . CodeActionKind . Refactor instanceof vscode . CodeActionKind ) ;
21
21
assert . ok ( vscode . CodeActionKind . RefactorExtract instanceof vscode . CodeActionKind ) ;
22
22
assert . ok ( vscode . CodeActionKind . RefactorInline instanceof vscode . CodeActionKind ) ;
23
+ assert . ok ( vscode . CodeActionKind . RefactorMove instanceof vscode . CodeActionKind ) ;
23
24
assert . ok ( vscode . CodeActionKind . RefactorRewrite instanceof vscode . CodeActionKind ) ;
24
25
assert . ok ( vscode . CodeActionKind . Source instanceof vscode . CodeActionKind ) ;
25
26
assert . ok ( vscode . CodeActionKind . SourceOrganizeImports instanceof vscode . CodeActionKind ) ;
Original file line number Diff line number Diff line change @@ -1321,6 +1321,7 @@ export class CodeActionKind {
1321
1321
public static Refactor : CodeActionKind ;
1322
1322
public static RefactorExtract : CodeActionKind ;
1323
1323
public static RefactorInline : CodeActionKind ;
1324
+ public static RefactorMove : CodeActionKind ;
1324
1325
public static RefactorRewrite : CodeActionKind ;
1325
1326
public static Source : CodeActionKind ;
1326
1327
public static SourceOrganizeImports : CodeActionKind ;
@@ -1347,6 +1348,7 @@ CodeActionKind.QuickFix = CodeActionKind.Empty.append('quickfix');
1347
1348
CodeActionKind . Refactor = CodeActionKind . Empty . append ( 'refactor' ) ;
1348
1349
CodeActionKind . RefactorExtract = CodeActionKind . Refactor . append ( 'extract' ) ;
1349
1350
CodeActionKind . RefactorInline = CodeActionKind . Refactor . append ( 'inline' ) ;
1351
+ CodeActionKind . RefactorMove = CodeActionKind . Refactor . append ( 'move' ) ;
1350
1352
CodeActionKind . RefactorRewrite = CodeActionKind . Refactor . append ( 'rewrite' ) ;
1351
1353
CodeActionKind . Source = CodeActionKind . Empty . append ( 'source' ) ;
1352
1354
CodeActionKind . SourceOrganizeImports = CodeActionKind . Source . append ( 'organizeImports' ) ;
Original file line number Diff line number Diff line change @@ -2275,6 +2275,18 @@ declare module 'vscode' {
2275
2275
*/
2276
2276
static readonly RefactorInline: CodeActionKind;
2277
2277
2278
+ /**
2279
+ * Base kind for refactoring move actions: `refactor.move`
2280
+ *
2281
+ * Example move actions:
2282
+ *
2283
+ * - Move a function to a new file
2284
+ * - Move a property between classes
2285
+ * - Move method to base class
2286
+ * - ...
2287
+ */
2288
+ static readonly RefactorMove: CodeActionKind;
2289
+
2278
2290
/**
2279
2291
* Base kind for refactoring rewrite actions: `refactor.rewrite`
2280
2292
*
@@ -2284,7 +2296,6 @@ declare module 'vscode' {
2284
2296
* - Add or remove parameter
2285
2297
* - Encapsulate field
2286
2298
* - Make method static
2287
- * - Move method to base class
2288
2299
* - ...
2289
2300
*/
2290
2301
static readonly RefactorRewrite: CodeActionKind;
You can’t perform that action at this time.
0 commit comments