Fixed snippets

This commit is contained in:
Tobe O 2018-11-12 03:33:16 -05:00
parent 2596b53813
commit 5509c87034
2 changed files with 11 additions and 9 deletions

View file

@ -22,22 +22,22 @@
"flutter", "flutter",
"fuchsia" "fuchsia"
], ],
"snippets": [ "_activationEvents": [
{
"language": "dart",
"path": "./snippets/angel.json"
}
],
"activationEvents": [
"onCommand:extension.sayHello" "onCommand:extension.sayHello"
], ],
"main": "./out/extension", "_main": "./out/extension",
"contributes": { "contributes": {
"commands": [ "_commands": [
{ {
"command": "extension.sayHello", "command": "extension.sayHello",
"title": "Hello World" "title": "Hello World"
} }
],
"snippets": [
{
"language": "dart",
"path": "./snippets/angel.json"
}
] ]
}, },
"scripts": { "scripts": {

View file

@ -12,6 +12,7 @@
" String hello() {", " String hello() {",
" return 'Hello, world';", " return 'Hello, world';",
" }", " }",
" $2",
"}" "}"
] ]
}, },
@ -28,6 +29,7 @@
" void hello(WebSocketContext socket) {", " void hello(WebSocketContext socket) {",
" socket.send('pong', {'message': 'Hello, world!'});", " socket.send('pong', {'message': 'Hello, world!'});",
" }", " }",
" $2",
"}" "}"
] ]
}, },