Skip to content

Commit 3ec24ac

Browse files
imbanthyangah
authored andcommitted
Snippets: remove the comma from the placeholder in forr
When using "forr" snippet, the comma in the "_, " placeholder will be deleted if user edit the placeholder. So the comma should not be part of the placeholder Change-Id: Ief4e6f24055c75dbb75d413b8fdbdeae39a437c2 GitHub-Last-Rev: 738c0bf GitHub-Pull-Request: #3602 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/627895 Reviewed-by: Dmitri Shuralyov <[email protected]> kokoro-CI: kokoro <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Commit-Queue: Hyang-Ah Hana Kim <[email protected]>
1 parent d7a44e3 commit 3ec24ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/snippets/go.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
},
7878
"for range statement": {
7979
"prefix": "forr",
80-
"body": "for ${1:_, }${2:v} := range ${3:v} {\n\t$0\n}",
80+
"body": "for ${1:_}, ${2:v} := range ${3:v} {\n\t$0\n}",
8181
"description": "Snippet for a for range loop"
8282
},
8383
"channel declaration": {

0 commit comments

Comments
 (0)