File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
packages/cursorless-engine/src/core/updateSelections Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ export async function performEditsAndUpdateSelections(
258
258
document ,
259
259
originalSelections ,
260
260
) ;
261
- return performEditsAndUpdateInternal (
261
+ return performEditsAndUpdateFullSelectionInfos (
262
262
rangeUpdater ,
263
263
editor ,
264
264
edits ,
@@ -307,27 +307,12 @@ export async function performEditsAndUpdateRanges(
307
307
) : Promise < Range [ ] [ ] > {
308
308
const document = editor . document ;
309
309
const selectionInfoMatrix = rangesToSelectionInfos ( document , originalRanges ) ;
310
- return performEditsAndUpdateInternal (
311
- rangeUpdater ,
312
- editor ,
313
- edits ,
314
- selectionInfoMatrix ,
315
- ) ;
316
- }
317
-
318
- async function performEditsAndUpdateInternal (
319
- rangeUpdater : RangeUpdater ,
320
- editor : EditableTextEditor ,
321
- edits : Edit [ ] ,
322
- selectionInfoMatrix : FullSelectionInfo [ ] [ ] ,
323
- ) {
324
- await performEditsAndUpdateFullSelectionInfos (
310
+ return performEditsAndUpdateFullSelectionInfos (
325
311
rangeUpdater ,
326
312
editor ,
327
313
edits ,
328
314
selectionInfoMatrix ,
329
315
) ;
330
- return selectionInfosToSelections ( selectionInfoMatrix ) ;
331
316
}
332
317
333
318
// FIXME: Remove this function if we don't end up using it for the next couple use cases, eg `that` mark and cursor history
You can’t perform that action at this time.
0 commit comments