Skip to content

Commit de60599

Browse files
mszabo-wikiaClaude
andauthored
fix: escape snippet variable in while snippet to fix VS Code warning (#206)
The while snippet used `$$a` which VS Code interprets as a snippet variable reference, triggering a startup warning about confusing snippet-variables and snippet-placeholders. Escape it as `\$a` to match the do…while snippet's existing correct escaping. Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
1 parent 89627fb commit de60599

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snippets/hack.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
},
107107
"while …": {
108108
"prefix": "while",
109-
"body": "while (${1:$$a <= 10}) {\n\t${0:// code...}\n}"
109+
"body": "while (${1:\\$a <= 10}) {\n\t${0:// code...}\n}"
110110
}
111111
}
112112
}

0 commit comments

Comments
 (0)