forked from 7sharp9/RustyCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
258 lines (258 loc) · 7.81 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
{
"name": "RustyCode",
"displayName": "Rusty Code",
"description": "Rust language integration for VSCode",
"version": "0.19.1",
"publisher": "saviorisdead",
"license": "MIT",
"icon": "images/icon.png",
"homepage": "https://github.com/saviorisdead/RustyCode",
"repository": {
"type": "git",
"url": "https://github.com/saviorisdead/RustyCode"
},
"bugs": {
"url": "https://github.com/saviorisdead/RustyCode/issues",
"email": "[email protected]"
},
"engines": {
"vscode": "^1.0.0"
},
"categories": [
"Languages",
"Linters",
"Snippets"
],
"activationEvents": [
"onLanguage:rust"
],
"main": "./out/src/extension",
"contributes": {
"languages": [
{
"id": "rust",
"aliases": [
"Rust"
],
"extensions": [
".toml",
".rs"
]
}
],
"snippets": [
{
"language": "rust",
"path": "./snippets/rust.json"
}
],
"commands": [
{
"command": "rust.cargo.build.example.debug",
"title": "Cargo: Build example, Debug",
"description": "Compile the current example"
},
{
"command": "rust.cargo.build.example.release",
"title": "Cargo: Build example, Release",
"description": "Compile the current example with \"--release\" flag"
},
{
"command": "rust.cargo.run.example.debug",
"title": "Cargo: Run example, Debug",
"description": "Compile the current example and execute it"
},
{
"command": "rust.cargo.run.example.release",
"title": "Cargo: Run example, Release",
"description": "Compile the current example with \"--release\" flag and execute it"
},
{
"command": "rust.cargo.build.debug",
"title": "Cargo: Build Debug",
"description": "Compile the current project"
},
{
"command": "rust.cargo.build.release",
"title": "Cargo: Build Release",
"description": "Compile the current project with \"--release\" flag"
},
{
"command": "rust.cargo.run.debug",
"title": "Cargo: Run Debug",
"description": "Build and execute src/main.rs"
},
{
"command": "rust.cargo.run.release",
"title": "Cargo: Run Release",
"description": "Build with \"--release\" flag and execute src/main.rs"
},
{
"command": "rust.cargo.doc",
"title": "Cargo: Doc",
"description": "Build this project's and its dependencies' documentation"
},
{
"command": "rust.cargo.test.debug",
"title": "Cargo: Test Debug",
"description": "Run the tests"
},
{
"command": "rust.cargo.test.release",
"title": "Cargo: Test Release",
"description": "Run the tests with --release"
},
{
"command": "rust.cargo.bench",
"title": "Cargo: Bench",
"description": "Run the benchmarks"
},
{
"command": "rust.cargo.update",
"title": "Cargo: Update",
"description": "Update dependencies listed in Cargo.lock"
},
{
"command": "rust.cargo.clean",
"title": "Cargo: Clean",
"description": "Remove the target directory"
},
{
"command": "rust.cargo.check",
"title": "Cargo: Check",
"description": "Check the project for warnings and errors"
},
{
"command": "rust.cargo.check.lib",
"title": "Cargo: Check Library",
"description": "Check the main library of the project for warnings and errors"
},
{
"command": "rust.cargo.terminate",
"title": "Cargo: Terminate Running Task",
"description": "Terminate currently running cargo task"
}
],
"configuration": {
"title": "Rusty Code configuration",
"type": "object",
"properties": {
"rust.racerPath": {
"type": ["string", "null"],
"default": null,
"description": "Specifies path to Racer binary if it's not in PATH"
},
"rust.rustfmtPath": {
"type": ["string", "null"],
"default": null,
"description": "Specifies path to Rustfmt binary if it's not in PATH"
},
"rust.rustsymPath": {
"type": ["string", "null"],
"default": null,
"description": "Specifies path to Rustsym binary if it's not in PATH"
},
"rust.rustLangSrcPath": {
"type": ["string", "null"],
"default": null,
"description": "Specifies path to /src directory of local copy of Rust sources"
},
"rust.cargoPath": {
"type": ["string", "null"],
"default": null,
"description": "Specifies path to Cargo binary if it's not in PATH"
},
"rust.cargoHomePath": {
"type": ["string", "null"],
"default": null,
"description": "Specifies path to home directory of Cargo. Mostly needed for working with custom installations of Rust via rustup or multirust."
},
"rust.cargoEnv": {
"type": ["object", "null"],
"default": null,
"description": "Specifies custom variables to set when running cargo. Useful for crates which use env vars in their build.rs (like openssl-sys)."
},
"rust.formatOnSave": {
"type": "boolean",
"default": false,
"description": "Turn on/off autoformatting file on save"
},
"rust.checkOnSave": {
"type": "boolean",
"default": false,
"description": "Turn on/off autochecking file on save using cargo check"
},
"rust.checkWith": {
"type": "string",
"default": "check",
"description": "Choose between check, check-lib, clippy, build and test to lint"
},
"rust.features": {
"type": "array",
"default": [],
"description": "List of feature flags passed to cargo"
},
"rust.useJsonErrors": {
"type": "boolean",
"default": false,
"description": "Enable the use of JSON errors (requires Rust 1.7+). Note: This is an unstable feature of Rust and is still in the process of being stablised"
},
"rust.useNewErrorFormat": {
"type": "boolean",
"default": false,
"description": "Use the new Rust error format (RUST_NEW_ERROR_FORMAT=true). Note: This flag is mutually exclusive with `useJsonErrors`."
}
}
},
"keybindings": [
{
"key": "ctrl+shift+b",
"command": "rust.cargo.build.debug",
"when": "editorLangId == 'rust'"
},
{
"key": "ctrl+shift+t",
"command": "rust.cargo.test.debug",
"when": "editorLangId == 'rust'"
},
{
"key": "ctrl+shift+r",
"command": "rust.cargo.run.debug",
"when": "editorLangId == 'rust'"
},
{
"key": "ctrl+shift+alt+b",
"command": "rust.cargo.build.release",
"when": "editorLangId == 'rust'"
},
{
"key": "ctrl+shift+alt+t",
"command": "rust.cargo.test.release",
"when": "editorLangId == 'rust'"
},
{
"key": "ctrl+shift+alt+r",
"command": "rust.cargo.run.release",
"when": "editorLangId == 'rust'"
}
]
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"gulp": "^3.9.0",
"gulp-shell": "^0.5.1",
"gulp-tslint": "^4.1.0",
"tslint": "^3.1.1",
"typescript": "1.8.7",
"vscode": "^0.11.12"
},
"dependencies": {
"tmp": "0.0.28",
"tree-kill": "^1.0.0",
"find-up": "^1.1.2"
}
}