Skip to content

Commit

Permalink
fixed reveal range when inserting snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakae committed May 16, 2024
1 parent ac42c0f commit fd7a781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function handleWorkSpaceEdit(uri: string, text: string, position: v
}

const edits: vscode.TextEdit[] = [vscode.TextEdit.insert(position, text)];
applyTextEdits(edits, uri);
await applyTextEdits(edits, uri);

const activeEditor = vscode.window.activeTextEditor;
if (activeEditor) {
Expand Down

0 comments on commit fd7a781

Please sign in to comment.