We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 01d412f + 1e617f4 commit 3de03d4Copy full SHA for 3de03d4
editors/code/src/commands.ts
@@ -125,8 +125,9 @@ export function joinLines(ctx: Ctx): Cmd {
125
editor.document
126
),
127
});
128
- await editor.edit(async (builder) => {
129
- (await client.protocol2CodeConverter.asTextEdits(items)).forEach((edit: any) => {
+ const textEdits = await client.protocol2CodeConverter.asTextEdits(items);
+ await editor.edit((builder) => {
130
+ textEdits.forEach((edit: any) => {
131
builder.replace(edit.range, edit.newText);
132
133
0 commit comments