Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 8c701b7

Browse files
committed
Modified snippets to use placeholders
VSCode would complain when launching the extension that the "New ScalaTest suite"-snippet was very likely confusing snippet-variables and snippet-placeholders. So I changed them over to use placeholders, as that both silences the warning and makes the snippets more useful as you can just tab through the bits that you need to type in yourself.
1 parent f95be28 commit 8c701b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scala/snippets/scala.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
"prefix": "resolvers",
1111
"body": [
1212
"resolvers += ",
13-
" \"${name: Repository name}\" at \"${url: Url where the repository is defined}\""
13+
"\"${1:Repository name}\" at \"${2:Url where the repository is defined}\""
1414
]
1515
},
1616

1717
"New ScalaTest suite": {
1818
"prefix": "suite",
1919
"body": [
20-
"class ${MyTestSuite} extends FunSuite {",
21-
" test(\"${test name}\") {",
20+
"class ${1:MyTestSuite} extends FunSuite {",
21+
" test(\"${2:Test name}\") {",
2222
" }",
2323
"}"
2424
]
2525
}
26-
}
26+
}

0 commit comments

Comments
 (0)