-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Closed
Labels
info-neededIssue requires more information from posterIssue requires more information from postersnippets
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.76.0
- OS Version: macOS Ventura 13.2.1
Steps to Reproduce:
- Create global snippets file with the following contents:
{
"works": {
"prefix": "works",
"body": [
"${TM_CURRENT_LINE/(^#.*)|(^[^#].*)/${1:+(comment)}${2:+(code)}/}"
],
"scope": "plaintext"
},
"doesn't work": {
"prefix": "doesn't work",
"body": [
"${TM_CURRENT_LINE/(^#.*)|(^[^#].*)/${1:+{comment}}${2:+{code}}/}"
],
"scope": "plaintext"
}
}
- Create plain text file, e.g.
test.txt - Autocomplete each of the following lines:
works
# works
doesn't work
# doesn't work
- Result:
(code)
# (comment)
}{code}
# {comment}}
- Expected result:
(code)
# (comment)
{code}
# {comment}
Metadata
Metadata
Assignees
Labels
info-neededIssue requires more information from posterIssue requires more information from postersnippets