diff --git a/angel_vscode/package.json b/angel_vscode/package.json index 858d2c91..dceaa425 100644 --- a/angel_vscode/package.json +++ b/angel_vscode/package.json @@ -22,22 +22,22 @@ "flutter", "fuchsia" ], - "snippets": [ - { - "language": "dart", - "path": "./snippets/angel.json" - } - ], - "activationEvents": [ + "_activationEvents": [ "onCommand:extension.sayHello" ], - "main": "./out/extension", + "_main": "./out/extension", "contributes": { - "commands": [ + "_commands": [ { "command": "extension.sayHello", "title": "Hello World" } + ], + "snippets": [ + { + "language": "dart", + "path": "./snippets/angel.json" + } ] }, "scripts": { diff --git a/angel_vscode/snippets/angel.json b/angel_vscode/snippets/angel.json index c432e595..3e3b740c 100644 --- a/angel_vscode/snippets/angel.json +++ b/angel_vscode/snippets/angel.json @@ -12,6 +12,7 @@ " String hello() {", " return 'Hello, world';", " }", + " $2", "}" ] }, @@ -28,6 +29,7 @@ " void hello(WebSocketContext socket) {", " socket.send('pong', {'message': 'Hello, world!'});", " }", + " $2", "}" ] },