@@ -75,118 +75,112 @@ import { Decrement, Increment } from "./incrementDecrement";
7575 */
7676export class Actions implements ActionRecord {
7777 constructor (
78- private treeSitter : TreeSitter ,
79- private snippets : Snippets ,
80- private rangeUpdater : RangeUpdater ,
81- private modifierStageFactory : ModifierStageFactory ,
78+ treeSitter : TreeSitter ,
79+ snippets : Snippets ,
80+ rangeUpdater : RangeUpdater ,
81+ modifierStageFactory : ModifierStageFactory ,
8282 ) {
83- this . addSelection = new AddSelection ( ) ;
84- this . addSelectionBefore = new AddSelectionBefore ( ) ;
85- this . addSelectionAfter = new AddSelectionAfter ( ) ;
86- this . callAsFunction = new Call ( this ) ;
87- this . clearAndSetSelection = new Clear ( this ) ;
88- this . copyToClipboard = new CopyToClipboard ( this , this . rangeUpdater ) ;
89- this . cutToClipboard = new CutToClipboard ( this ) ;
90- this . decrement = new Decrement ( this ) ;
91- this . deselect = new Deselect ( ) ;
92- this . editNew = new EditNew ( this . rangeUpdater , this ) ;
93- this . editNewLineAfter = new EditNewAfter (
94- this ,
95- this . modifierStageFactory ,
96- ) ;
97- this . editNewLineBefore = new EditNewBefore (
98- this ,
99- this . modifierStageFactory ,
100- ) ;
101- this . executeCommand = new ExecuteCommand ( this . rangeUpdater ) ;
102- this . extractVariable = new ExtractVariable ( this . rangeUpdater ) ;
103- this . findInDocument = new FindInDocument ( this ) ;
104- this . findInWorkspace = new FindInWorkspace ( this ) ;
105- this . flashTargets = new FlashTargets ( ) ;
106- this . foldRegion = new Fold ( this . rangeUpdater ) ;
107- this . followLink = new FollowLink ( { openAside : false } ) ;
108- this . followLinkAside = new FollowLink ( { openAside : true } ) ;
109- this . generateSnippet = new GenerateSnippet ( this . snippets ) ;
110- this . getText = new GetText ( ) ;
111- this . gitAccept = new GitAccept ( this . rangeUpdater ) ;
112- this . gitRevert = new GitRevert ( this . rangeUpdater ) ;
113- this . gitStage = new GitStage ( this . rangeUpdater ) ;
114- this . gitUnstage = new GitUnstage ( this . rangeUpdater ) ;
115- this . highlight = new Highlight ( ) ;
116- this . increment = new Increment ( this ) ;
117- this . indentLine = new IndentLine ( this . rangeUpdater ) ;
118- this . insertCopyAfter = new InsertCopyAfter (
119- this . rangeUpdater ,
120- this . modifierStageFactory ,
121- ) ;
122- this . insertCopyBefore = new InsertCopyBefore (
123- this . rangeUpdater ,
124- this . modifierStageFactory ,
125- ) ;
126- this . insertEmptyLineAfter = new InsertEmptyLineAfter (
127- this . rangeUpdater ,
128- this . modifierStageFactory ,
129- ) ;
130- this . insertEmptyLineBefore = new InsertEmptyLineBefore (
131- this . rangeUpdater ,
132- this . modifierStageFactory ,
133- ) ;
134- this . insertEmptyLinesAround = new InsertEmptyLinesAround (
135- this . rangeUpdater ,
136- this . modifierStageFactory ,
137- ) ;
138- this . insertSnippet = new InsertSnippet (
139- this . rangeUpdater ,
140- this . snippets ,
141- this ,
142- this . modifierStageFactory ,
143- ) ;
144- this . joinLines = new JoinLines ( this . rangeUpdater , this . modifierStageFactory ) ;
145- this . breakLine = new BreakLine ( this . rangeUpdater ) ;
146- this . moveToTarget = new Move ( this . rangeUpdater ) ;
147- this . outdentLine = new OutdentLine ( this . rangeUpdater ) ;
148- this . pasteFromClipboard = new PasteFromClipboard ( this . rangeUpdater , this ) ;
149- this . randomizeTargets = new Random ( this ) ;
150- this . remove = new Remove ( this . rangeUpdater ) ;
151- this . rename = new Rename ( this . rangeUpdater ) ;
152- this . replace = new Replace ( this . rangeUpdater ) ;
153- this . replaceWithTarget = new Bring ( this . rangeUpdater ) ;
154- this . revealDefinition = new RevealDefinition ( this . rangeUpdater ) ;
155- this . revealTypeDefinition = new RevealTypeDefinition ( this . rangeUpdater ) ;
156- this . reverseTargets = new Reverse ( this ) ;
157- this . rewrapWithPairedDelimiter = new Rewrap (
158- this . rangeUpdater ,
159- this . modifierStageFactory ,
160- ) ;
161- this . scrollToBottom = new ScrollToBottom ( ) ;
162- this . scrollToCenter = new ScrollToCenter ( ) ;
163- this . scrollToTop = new ScrollToTop ( ) ;
164- this . setSelection = new SetSelection ( ) ;
165- this . setSelectionAfter = new SetSelectionAfter ( ) ;
166- this . setSelectionBefore = new SetSelectionBefore ( ) ;
167- this . showDebugHover = new ShowDebugHover ( this . rangeUpdater ) ;
168- this . showHover = new ShowHover ( this . rangeUpdater ) ;
169- this . showQuickFix = new ShowQuickFix ( this . rangeUpdater ) ;
170- this . showReferences = new ShowReferences ( this . rangeUpdater ) ;
171- this . sortTargets = new Sort ( this ) ;
172- this . swapTargets = new Swap ( this . rangeUpdater ) ;
173- this . toggleLineBreakpoint = new ToggleBreakpoint ( this . modifierStageFactory ) ;
174- this . toggleLineComment = new ToggleLineComment ( this . rangeUpdater ) ;
175- this . unfoldRegion = new Unfold ( this . rangeUpdater ) ;
176- this . wrapWithPairedDelimiter = new Wrap ( this . rangeUpdater ) ;
177- this . wrapWithSnippet = new WrapWithSnippet (
178- this . rangeUpdater ,
179- this . snippets ,
180- this . modifierStageFactory ,
181- ) ;
83+ this . addSelection = new AddSelection ( ) ;
84+ this . addSelectionBefore = new AddSelectionBefore ( ) ;
85+ this . addSelectionAfter = new AddSelectionAfter ( ) ;
86+ this . callAsFunction = new Call ( this ) ;
87+ this . clearAndSetSelection = new Clear ( this ) ;
88+ this . copyToClipboard = new CopyToClipboard ( this , rangeUpdater ) ;
89+ this . cutToClipboard = new CutToClipboard ( this ) ;
90+ this . decrement = new Decrement ( this ) ;
91+ this . deselect = new Deselect ( ) ;
92+ this . editNew = new EditNew ( rangeUpdater , this ) ;
93+ this . editNewLineAfter = new EditNewAfter ( this , modifierStageFactory ) ;
94+ this . editNewLineBefore = new EditNewBefore ( this , modifierStageFactory ) ;
95+ this . executeCommand = new ExecuteCommand ( rangeUpdater ) ;
96+ this . extractVariable = new ExtractVariable ( rangeUpdater ) ;
97+ this . findInDocument = new FindInDocument ( this ) ;
98+ this . findInWorkspace = new FindInWorkspace ( this ) ;
99+ this . flashTargets = new FlashTargets ( ) ;
100+ this . foldRegion = new Fold ( rangeUpdater ) ;
101+ this . followLink = new FollowLink ( { openAside : false } ) ;
102+ this . followLinkAside = new FollowLink ( { openAside : true } ) ;
103+ this . generateSnippet = new GenerateSnippet ( snippets ) ;
104+ this . getText = new GetText ( ) ;
105+ this . gitAccept = new GitAccept ( rangeUpdater ) ;
106+ this . gitRevert = new GitRevert ( rangeUpdater ) ;
107+ this . gitStage = new GitStage ( rangeUpdater ) ;
108+ this . gitUnstage = new GitUnstage ( rangeUpdater ) ;
109+ this . highlight = new Highlight ( ) ;
110+ this . increment = new Increment ( this ) ;
111+ this . indentLine = new IndentLine ( rangeUpdater ) ;
112+ this . insertCopyAfter = new InsertCopyAfter (
113+ rangeUpdater ,
114+ modifierStageFactory ,
115+ ) ;
116+ this . insertCopyBefore = new InsertCopyBefore (
117+ rangeUpdater ,
118+ modifierStageFactory ,
119+ ) ;
120+ this . insertEmptyLineAfter = new InsertEmptyLineAfter (
121+ rangeUpdater ,
122+ modifierStageFactory ,
123+ ) ;
124+ this . insertEmptyLineBefore = new InsertEmptyLineBefore (
125+ rangeUpdater ,
126+ modifierStageFactory ,
127+ ) ;
128+ this . insertEmptyLinesAround = new InsertEmptyLinesAround (
129+ rangeUpdater ,
130+ modifierStageFactory ,
131+ ) ;
132+ this . insertSnippet = new InsertSnippet (
133+ rangeUpdater ,
134+ snippets ,
135+ this ,
136+ modifierStageFactory ,
137+ ) ;
138+ this . joinLines = new JoinLines ( rangeUpdater , modifierStageFactory ) ;
139+ this . breakLine = new BreakLine ( rangeUpdater ) ;
140+ this . moveToTarget = new Move ( rangeUpdater ) ;
141+ this . outdentLine = new OutdentLine ( rangeUpdater ) ;
142+ this . pasteFromClipboard = new PasteFromClipboard ( rangeUpdater , this ) ;
143+ this . randomizeTargets = new Random ( this ) ;
144+ this . remove = new Remove ( rangeUpdater ) ;
145+ this . rename = new Rename ( rangeUpdater ) ;
146+ this . replace = new Replace ( rangeUpdater ) ;
147+ this . replaceWithTarget = new Bring ( rangeUpdater ) ;
148+ this . revealDefinition = new RevealDefinition ( rangeUpdater ) ;
149+ this . revealTypeDefinition = new RevealTypeDefinition ( rangeUpdater ) ;
150+ this . reverseTargets = new Reverse ( this ) ;
151+ this . rewrapWithPairedDelimiter = new Rewrap (
152+ rangeUpdater ,
153+ modifierStageFactory ,
154+ ) ;
155+ this . scrollToBottom = new ScrollToBottom ( ) ;
156+ this . scrollToCenter = new ScrollToCenter ( ) ;
157+ this . scrollToTop = new ScrollToTop ( ) ;
158+ this . setSelection = new SetSelection ( ) ;
159+ this . setSelectionAfter = new SetSelectionAfter ( ) ;
160+ this . setSelectionBefore = new SetSelectionBefore ( ) ;
161+ this . showDebugHover = new ShowDebugHover ( rangeUpdater ) ;
162+ this . showHover = new ShowHover ( rangeUpdater ) ;
163+ this . showQuickFix = new ShowQuickFix ( rangeUpdater ) ;
164+ this . showReferences = new ShowReferences ( rangeUpdater ) ;
165+ this . sortTargets = new Sort ( this ) ;
166+ this . swapTargets = new Swap ( rangeUpdater ) ;
167+ this . toggleLineBreakpoint = new ToggleBreakpoint ( modifierStageFactory ) ;
168+ this . toggleLineComment = new ToggleLineComment ( rangeUpdater ) ;
169+ this . unfoldRegion = new Unfold ( rangeUpdater ) ;
170+ this . wrapWithPairedDelimiter = new Wrap ( rangeUpdater ) ;
171+ this . wrapWithSnippet = new WrapWithSnippet (
172+ rangeUpdater ,
173+ snippets ,
174+ modifierStageFactory ,
175+ ) ;
182176
183- this [ "experimental.setInstanceReference" ] = new SetSpecialTarget (
184- "instanceReference" ,
185- ) ;
177+ this [ "experimental.setInstanceReference" ] = new SetSpecialTarget (
178+ "instanceReference" ,
179+ ) ;
186180
187- this [ "private.showParseTree" ] = new ShowParseTree ( this . treeSitter ) ;
188- this [ "private.getTargets" ] = new GetTargets ( ) ;
189- this [ "private.setKeyboardTarget" ] = new SetSpecialTarget ( "keyboard" ) ;
181+ this [ "private.showParseTree" ] = new ShowParseTree ( treeSitter ) ;
182+ this [ "private.getTargets" ] = new GetTargets ( ) ;
183+ this [ "private.setKeyboardTarget" ] = new SetSpecialTarget ( "keyboard" ) ;
190184 }
191185
192186 addSelection ;
0 commit comments