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"
|
||||||
],
|
],
|
||||||
|
"_activationEvents": [
|
||||||
|
"onCommand:extension.sayHello"
|
||||||
|
],
|
||||||
|
"_main": "./out/extension",
|
||||||
|
"contributes": {
|
||||||
|
"_commands": [
|
||||||
|
{
|
||||||
|
"command": "extension.sayHello",
|
||||||
|
"title": "Hello World"
|
||||||
|
}
|
||||||
|
],
|
||||||
"snippets": [
|
"snippets": [
|
||||||
{
|
{
|
||||||
"language": "dart",
|
"language": "dart",
|
||||||
"path": "./snippets/angel.json"
|
"path": "./snippets/angel.json"
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"activationEvents": [
|
|
||||||
"onCommand:extension.sayHello"
|
|
||||||
],
|
|
||||||
"main": "./out/extension",
|
|
||||||
"contributes": {
|
|
||||||
"commands": [
|
|
||||||
{
|
|
||||||
"command": "extension.sayHello",
|
|
||||||
"title": "Hello World"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"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