Skip to content

Commit f182e0f

Browse files
committed
fix: support multiple snippet placeholders in VS Code extension
1 parent 5f147cc commit f182e0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

editors/code/src/snippets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function applySnippetTextEdits(editor: vscode.TextEditor, edits: vs
5353
}
5454

5555
function hasSnippet(snip: string): boolean {
56-
const m = snip.match(/\$\d+|\{\d+:[^}]*\}/);
56+
const m = snip.match(/\$\d+|\$\{\d+:[^}]*\}/);
5757
return m != null;
5858
}
5959

0 commit comments

Comments
 (0)