diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index db1fe5189..8f24a13f5 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -6,7 +6,7 @@ | |||
6 | "private": true, | 6 | "private": true, |
7 | "icon": "icon.png", | 7 | "icon": "icon.png", |
8 | "//": "The real version is in release.yaml, this one just needs to be bigger", | 8 | "//": "The real version is in release.yaml, this one just needs to be bigger", |
9 | "version": "0.2.0-dev", | 9 | "version": "0.2.20200211-dev", |
10 | "publisher": "matklad", | 10 | "publisher": "matklad", |
11 | "repository": { | 11 | "repository": { |
12 | "url": "https://github.com/rust-analyzer/rust-analyzer.git", | 12 | "url": "https://github.com/rust-analyzer/rust-analyzer.git", |
@@ -33,11 +33,11 @@ | |||
33 | "devDependencies": { | 33 | "devDependencies": { |
34 | "@rollup/plugin-commonjs": "^11.0.2", | 34 | "@rollup/plugin-commonjs": "^11.0.2", |
35 | "@rollup/plugin-node-resolve": "^7.1.1", | 35 | "@rollup/plugin-node-resolve": "^7.1.1", |
36 | "@types/node": "^12.12.25", | 36 | "@types/node": "^12.12.27", |
37 | "@types/node-fetch": "^2.5.4", | 37 | "@types/node-fetch": "^2.5.4", |
38 | "@types/throttle-debounce": "^2.1.0", | 38 | "@types/throttle-debounce": "^2.1.0", |
39 | "@types/vscode": "^1.42.0", | 39 | "@types/vscode": "^1.42.0", |
40 | "rollup": "^1.31.0", | 40 | "rollup": "^1.31.1", |
41 | "tslib": "^1.10.0", | 41 | "tslib": "^1.10.0", |
42 | "tslint": "^5.20.1", | 42 | "tslint": "^5.20.1", |
43 | "typescript": "^3.7.5", | 43 | "typescript": "^3.7.5", |
@@ -124,6 +124,11 @@ | |||
124 | "command": "rust-analyzer.onEnter", | 124 | "command": "rust-analyzer.onEnter", |
125 | "title": "Enhanced enter key", | 125 | "title": "Enhanced enter key", |
126 | "category": "Rust Analyzer" | 126 | "category": "Rust Analyzer" |
127 | }, | ||
128 | { | ||
129 | "command": "rust-analyzer.ssr", | ||
130 | "title": "Structural Search Replace", | ||
131 | "category": "Rust Analyzer" | ||
127 | } | 132 | } |
128 | ], | 133 | ], |
129 | "keybindings": [ | 134 | "keybindings": [ |
@@ -182,9 +187,20 @@ | |||
182 | }, | 187 | }, |
183 | "rust-analyzer.excludeGlobs": { | 188 | "rust-analyzer.excludeGlobs": { |
184 | "type": "array", | 189 | "type": "array", |
190 | "items": { | ||
191 | "type": "string" | ||
192 | }, | ||
185 | "default": [], | 193 | "default": [], |
186 | "description": "Paths to exclude from analysis" | 194 | "description": "Paths to exclude from analysis" |
187 | }, | 195 | }, |
196 | "rust-analyzer.rustfmtArgs": { | ||
197 | "type": "array", | ||
198 | "items": { | ||
199 | "type": "string" | ||
200 | }, | ||
201 | "default": [], | ||
202 | "description": "Additional arguments to rustfmt" | ||
203 | }, | ||
188 | "rust-analyzer.useClientWatching": { | 204 | "rust-analyzer.useClientWatching": { |
189 | "type": "boolean", | 205 | "type": "boolean", |
190 | "default": true, | 206 | "default": true, |
@@ -197,6 +213,9 @@ | |||
197 | }, | 213 | }, |
198 | "rust-analyzer.cargo-watch.arguments": { | 214 | "rust-analyzer.cargo-watch.arguments": { |
199 | "type": "array", | 215 | "type": "array", |
216 | "items": { | ||
217 | "type": "string" | ||
218 | }, | ||
200 | "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", | 219 | "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", |
201 | "default": [] | 220 | "default": [] |
202 | }, | 221 | }, |
@@ -228,10 +247,12 @@ | |||
228 | }, | 247 | }, |
229 | "rust-analyzer.lruCapacity": { | 248 | "rust-analyzer.lruCapacity": { |
230 | "type": [ | 249 | "type": [ |
231 | "number", | 250 | "null", |
232 | "null" | 251 | "integer" |
233 | ], | 252 | ], |
234 | "default": null, | 253 | "default": null, |
254 | "minimum": 0, | ||
255 | "exclusiveMinimum": true, | ||
235 | "description": "Number of syntax trees rust-analyzer keeps in memory" | 256 | "description": "Number of syntax trees rust-analyzer keeps in memory" |
236 | }, | 257 | }, |
237 | "rust-analyzer.displayInlayHints": { | 258 | "rust-analyzer.displayInlayHints": { |
@@ -240,8 +261,13 @@ | |||
240 | "description": "Display additional type and parameter information in the editor" | 261 | "description": "Display additional type and parameter information in the editor" |
241 | }, | 262 | }, |
242 | "rust-analyzer.maxInlayHintLength": { | 263 | "rust-analyzer.maxInlayHintLength": { |
243 | "type": "number", | 264 | "type": [ |
265 | "null", | ||
266 | "integer" | ||
267 | ], | ||
244 | "default": 20, | 268 | "default": 20, |
269 | "minimum": 0, | ||
270 | "exclusiveMinimum": true, | ||
245 | "description": "Maximum length for inlay hints" | 271 | "description": "Maximum length for inlay hints" |
246 | }, | 272 | }, |
247 | "rust-analyzer.cargoFeatures.noDefaultFeatures": { | 273 | "rust-analyzer.cargoFeatures.noDefaultFeatures": { |
@@ -256,6 +282,9 @@ | |||
256 | }, | 282 | }, |
257 | "rust-analyzer.cargoFeatures.features": { | 283 | "rust-analyzer.cargoFeatures.features": { |
258 | "type": "array", | 284 | "type": "array", |
285 | "items": { | ||
286 | "type": "string" | ||
287 | }, | ||
259 | "default": [], | 288 | "default": [], |
260 | "description": "List of features to activate" | 289 | "description": "List of features to activate" |
261 | } | 290 | } |