Skip to content

Commit 5059573

Browse files
committed
fix: trim \\ in quickfix
Closes #1228 Looks like snippet parser's issue, this is a quickfix. coc will implement snippetTextEdit feature later
1 parent 10393bd commit 5059573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ export async function applySnippetWorkspaceEdit(edit: WorkspaceEdit) {
584584

585585
for (const indel of change.edits) {
586586
const { range } = indel;
587-
let { newText } = indel;
587+
let newText = indel.newText.replace('\\}', '}');
588588
const parsed = parseSnippet(newText);
589589
if (parsed) {
590590
const [insert, [placeholderStart, placeholderLength]] = parsed;

0 commit comments

Comments
 (0)