aboutsummaryrefslogtreecommitdiff
path: root/code/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'code/package.json')
-rw-r--r--code/package.json98
1 files changed, 45 insertions, 53 deletions
diff --git a/code/package.json b/code/package.json
index 66c4f266f..1df932db1 100644
--- a/code/package.json
+++ b/code/package.json
@@ -1,56 +1,48 @@
1{ 1{
2 "name": "libsyntax-rust", 2 "name": "libsyntax-rust",
3 "displayName": "libsyntax-rust", 3 "displayName": "libsyntax-rust",
4 "description": "An experimental Rust plugin for VS Code based on libsyntax2", 4 "description": "An experimental Rust plugin for VS Code based on libsyntax2",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "http://github.com/matklad/libsyntax2/", 6 "repository": "http://github.com/matklad/libsyntax2/",
7 "version": "0.0.1", 7 "version": "0.0.1",
8 "publisher": "matklad", 8 "publisher": "matklad",
9 "engines": { 9 "engines": {
10 "vscode": "^1.18.0" 10 "vscode": "^1.25.0"
11 }, 11 },
12 "devDependencies": { 12 "scripts": {
13 "@types/node": "^6.0.112", 13 "compile": "tsc -p ./",
14 "neon-cli": "^0.2.0", 14 "postinstall": "node ./node_modules/vscode/bin/install"
15 "typescript": "^2.9.1", 15 },
16 "vsce": "^1.42.0", 16 "dependencies": {
17 "vscode": "^1.1.18" 17 "vscode-languageclient": "^4.3.0"
18 }, 18 },
19 "scripts": { 19 "devDependencies": {
20 "vscode:prepublish": "tsc -p ./", 20 "@types/node": "^7.0.56",
21 "compile": "tsc -watch -p ./", 21 "typescript": "^2.9.1",
22 "install": "neon build", 22 "vsce": "^1.42.0",
23 "postinstall": "node ./node_modules/vscode/bin/install" 23 "vscode": "^1.1.18"
24 }, 24 },
25 "main": "./out/src/main", 25 "main": "./out/src/extension",
26 "contributes": { 26 "activationEvents": [
27 "languages": [ 27 "onLanguage:rust"
28 { 28 ],
29 "id": "rust", 29 "contributes": {
30 "extensions": [ 30 "commands": [
31 ".rs" 31 {
32 ] 32 "command": "libsyntax-rust.syntaxTree",
33 } 33 "title": "Show Rust syntax tree"
34 ], 34 },
35 "commands": [ 35 {
36 { 36 "command": "libsyntax-rust.extendSelection",
37 "command": "libsyntax-rust.syntaxTree", 37 "title": "Rust Extend Selection"
38 "title": "Show Rust syntax tree" 38 }
39 }, 39 ],
40 { 40 "keybindings": [
41 "command": "libsyntax-rust.extendSelection", 41 {
42 "title": "Rust Extend Selection" 42 "command": "libsyntax-rust.extendSelection",
43 } 43 "key": "ctrl+w",
44 ], 44 "when": "editorTextFocus && editorLangId == rust"
45 "keybindings": [ 45 }
46 {
47 "command": "libsyntax-rust.extendSelection",
48 "key": "ctrl+w",
49 "when": "editorTextFocus && editorLangId == rust"
50 }
51 ]
52 },
53 "activationEvents": [
54 "onLanguage:rust"
55 ] 46 ]
47 }
56} 48}