@@ -8,11 +8,11 @@ import {
88import { ensureSingleTarget } from "../util/targetUtils" ;
99import { range , repeat , zip } from "lodash" ;
1010import displayPendingEditDecorations from "../util/editDisplayUtils" ;
11- import { performEditsAndUpdateSelections } from "../util/updateSelections" ;
1211import { performDocumentEdits } from "../util/performDocumentEdits" ;
1312import { commands , SnippetString , window , workspace } from "vscode" ;
1413import { join } from "path" ;
1514import { open } from "fs/promises" ;
15+ import { performEditsAndUpdateSelections } from "../core/updateSelections/updateSelections" ;
1616
1717export default class GenerateSnippet implements Action {
1818 getTargetPreferences : ( ) => ActionPreferences [ ] = ( ) => [
@@ -65,6 +65,7 @@ export default class GenerateSnippet implements Action {
6565
6666 const [ placeholderRanges , [ targetSelection ] ] =
6767 await performEditsAndUpdateSelections (
68+ this . graph . rangeUpdater ,
6869 editor ,
6970 originalSelections . map ( ( selection , index ) => ( {
7071 editor,
@@ -117,6 +118,7 @@ export default class GenerateSnippet implements Action {
117118 } ) ;
118119
119120 await performDocumentEdits (
121+ this . graph . rangeUpdater ,
120122 editor ,
121123 zip ( placeholderRanges , originalSelectionTexts ) . map ( ( [ range , text ] ) => ( {
122124 editor,
0 commit comments