Skip to content

Commit

Permalink
fix: trim \\ in quickfix
Browse files Browse the repository at this point in the history
related #1228
  • Loading branch information
fannheyward committed Apr 11, 2024
1 parent 495fcda commit de930f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.newText.replace('\\}', '}');
let newText = indel.newText.replaceAll('\\}', '}');
const parsed = parseSnippet(newText);
if (parsed) {
const [insert, [placeholderStart, placeholderLength]] = parsed;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"noEmit": true,
"target": "ES2018",
"target": "ES2021",
"module": "commonjs",
"declaration": false,
"sourceMap": true,
Expand Down

0 comments on commit de930f7

Please sign in to comment.