File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 8
8
import { commands , Selection } from "vscode" ;
9
9
10
10
class EditNewLine implements Action {
11
- getTargetPreferences : ( ) => ActionPreferences [ ] = ( ) => [ { insideOutsideType : "inside" } ] ;
11
+ getTargetPreferences : ( ) => ActionPreferences [ ] = ( ) => [
12
+ { insideOutsideType : "inside" } ,
13
+ ] ;
12
14
13
15
constructor ( private graph : Graph , private isAbove : boolean ) {
14
16
this . run = this . run . bind ( this ) ;
@@ -62,11 +64,18 @@ class EditNewLine implements Action {
62
64
}
63
65
64
66
export class EditNewLineAbove extends EditNewLine {
67
+ static id : string = "editNewLineAbove" ;
68
+ static alternateIds : string [ ] = [ ] ;
69
+ static defaultSpokenForm : string = "drink" ;
70
+ static scope = { langIds : [ "typescript" ] } ;
71
+
65
72
constructor ( graph : Graph ) {
66
73
super ( graph , true ) ;
67
74
}
68
75
}
69
76
77
+ registerAction ( EditNewLineAbove ) ;
78
+
70
79
export class EditNewLineBelow extends EditNewLine {
71
80
constructor ( graph : Graph ) {
72
81
super ( graph , false ) ;
You can’t perform that action at this time.
0 commit comments