Skip to content

Commit

Permalink
fix: trim \\ in quickfix
Browse files Browse the repository at this point in the history
Closes #1228

Looks like snippet parser's issue, this is a quickfix. coc will implement snippetTextEdit feature later
  • Loading branch information
fannheyward committed Feb 29, 2024
1 parent 10393bd commit 5059573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export async function applySnippetWorkspaceEdit(edit: WorkspaceEdit) {

for (const indel of change.edits) {
const { range } = indel;
let { newText } = indel;
let newText = indel.newText.replace('\\}', '}');
const parsed = parseSnippet(newText);
if (parsed) {
const [insert, [placeholderStart, placeholderLength]] = parsed;
Expand Down

0 comments on commit 5059573

Please sign in to comment.