Skip to content

Commit 6bd50ef

Browse files
Merge pull request #21940 from Amit5601/fix-vscode-snippets
fix: support multiple snippet placeholders in VS Code extension
2 parents f4b77dc + f182e0f commit 6bd50ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)