aboutsummaryrefslogtreecommitdiff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-16 10:54:24 +0100
committerAleksey Kladov <[email protected]>2018-09-16 11:07:39 +0100
commitb5021411a84822cb3f1e3aeffad9550dd15bdeb6 (patch)
tree9dca564f8e51b298dced01c4ce669c756dce3142 /editors/code/package.json
parentba0bfeee12e19da40b5eabc8d0408639af10e96f (diff)
rename all things
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json149
1 files changed, 149 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
new file mode 100644
index 000000000..cc8fb93f5
--- /dev/null
+++ b/editors/code/package.json
@@ -0,0 +1,149 @@
1{
2 "name": "ra-lsp",
3 "displayName": "ra-lsp",
4 "description": "",
5 "version": "0.0.1",
6 "publisher": "matklad",
7 "repository": {
8 "url": "https://github.com/matklad/rust-analyzer/"
9 },
10 "categories": [
11 "Other"
12 ],
13 "engines": {
14 "vscode": "^1.26.0"
15 },
16 "scripts": {
17 "vscode:prepublish": "npm run compile",
18 "compile": "tsc -p ./",
19 "watch": "tsc -watch -p ./",
20 "postinstall": "node ./node_modules/vscode/bin/install"
21 },
22 "dependencies": {
23 "vscode-languageclient": "^4.4.0"
24 },
25 "devDependencies": {
26 "typescript": "^2.6.1",
27 "vscode": "^1.1.21",
28 "vsce": "^1.42.0",
29 "@types/node": "^8.10.25",
30 "@types/mocha": "^2.2.42"
31 },
32 "activationEvents": [
33 "onLanguage:rust"
34 ],
35 "main": "./out/extension",
36 "contributes": {
37 "taskDefinitions": [
38 {
39 "type": "cargo",
40 "required": [
41 "command"
42 ],
43 "properties": {
44 "label": {
45 "type": "string"
46 },
47 "command": {
48 "type": "string"
49 },
50 "args": {
51 "type": "array"
52 },
53 "env": {
54 "type": "object"
55 }
56 }
57 }
58 ],
59 "commands": [
60 {
61 "command": "ra-lsp.createFile",
62 "title": "Show Rust syntax tree"
63 },
64 {
65 "command": "ra-lsp.syntaxTree",
66 "title": "Show Rust syntax tree"
67 },
68 {
69 "command": "ra-lsp.extendSelection",
70 "title": "Rust Extend Selection"
71 },
72 {
73 "command": "ra-lsp.matchingBrace",
74 "title": "Rust Matching Brace"
75 },
76 {
77 "command": "ra-lsp.parentModule",
78 "title": "Rust Parent Module"
79 },
80 {
81 "command": "ra-lsp.joinLines",
82 "title": "Rust Join Lines"
83 },
84 {
85 "command": "ra-lsp.run",
86 "title": "Rust Run"
87 }
88 ],
89 "keybindings": [
90 {
91 "command": "ra-lsp.parentModule",
92 "key": "ctrl+u",
93 "when": "editorTextFocus && editorLangId == rust"
94 },
95 {
96 "command": "ra-lsp.matchingBrace",
97 "key": "ctrl+shift+m",
98 "when": "editorTextFocus && editorLangId == rust"
99 },
100 {
101 "command": "ra-lsp.extendSelection",
102 "key": "ctrl+w",
103 "when": "editorTextFocus && editorLangId == rust"
104 },
105 {
106 "command": "ra-lsp.joinLines",
107 "key": "ctrl+shift+j",
108 "when": "editorTextFocus && editorLangId == rust"
109 },
110 {
111 "command": "ra-lsp.run",
112 "key": "ctrl+r",
113 "when": "editorTextFocus && editorLangId == rust"
114 }
115 ],
116 "problemMatchers": [
117 {
118 "name": "rustc",
119 "fileLocation": [
120 "relative",
121 "${workspaceRoot}"
122 ],
123 "pattern": [
124 {
125 "regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$",
126 "severity": 1,
127 "message": 4,
128 "code": 3
129 },
130 {
131 "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
132 "file": 2,
133 "line": 3,
134 "column": 4
135 },
136 {
137 "regexp": "^.*$"
138 },
139 {
140 "regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
141 "file": 2,
142 "line": 3,
143 "column": 4
144 }
145 ]
146 }
147 ]
148 }
149}