Fixed snippets
This commit is contained in:
parent
2596b53813
commit
5509c87034
2 changed files with 11 additions and 9 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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",
|
||||||
"}"
|
"}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue