aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-02 10:55:04 +0100
committerAleksey Kladov <[email protected]>2020-04-02 11:27:09 +0100
commite4cf40a152120c6c3cba1822e56026ae04be63f0 (patch)
tree45d326021aa8f60c35e44442b2349fc9ff1944bb /editors/code
parent0dde0f92dee7080b91343238ddfa312cc1a7001a (diff)
New config in package.json
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json245
1 files changed, 125 insertions, 120 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 946145df8..df8adfe0e 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -177,81 +177,71 @@
177 "type": "object", 177 "type": "object",
178 "title": "Rust Analyzer", 178 "title": "Rust Analyzer",
179 "properties": { 179 "properties": {
180 "rust-analyzer.highlighting.semanticTokens": { 180 "rust-analyzer.diagnostics.enable": {
181 "type": "boolean", 181 "type": "boolean",
182 "default": false, 182 "default": true,
183 "description": "Use proposed semantic tokens API for syntax highlighting" 183 "markdownDescription": "Whether to show native rust-analyzer diagnostics."
184 }, 184 },
185 "rust-analyzer.featureFlags": { 185 "rust-analyzer.lruCapacity": {
186 "type": "object", 186 "type": [
187 "default": {}, 187 "null",
188 "description": "Fine grained feature flags to disable annoying features", 188 "integer"
189 "properties": { 189 ],
190 "lsp.diagnostics": { 190 "default": null,
191 "type": "boolean", 191 "minimum": 0,
192 "markdownDescription": "Whether to show diagnostics from `cargo check`" 192 "exclusiveMinimum": true,
193 }, 193 "description": "Number of syntax trees rust-analyzer keeps in memory."
194 "completion.insertion.add-call-parenthesis": {
195 "type": "boolean",
196 "description": "Whether to add parenthesis when completing functions"
197 },
198 "completion.insertion.add-argument-snippets": {
199 "type": "boolean",
200 "description": "Whether to add argument snippets when completing functions"
201 },
202 "completion.enable-postfix": {
203 "type": "boolean",
204 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc."
205 },
206 "call-info.full": {
207 "type": "boolean",
208 "description": "Show function name and docs in parameter hints"
209 },
210 "notifications.workspace-loaded": {
211 "type": "boolean",
212 "markdownDescription": "Whether to show `workspace loaded` message"
213 },
214 "notifications.cargo-toml-not-found": {
215 "type": "boolean",
216 "markdownDescription": "Whether to show `can't find Cargo.toml` error message"
217 }
218 }
219 }, 194 },
220 "rust-analyzer.updates.channel": { 195 "rust-analyzer.files.watcher": {
221 "type": "string", 196 "type": "string",
222 "enum": [ 197 "enum": [
223 "stable", 198 "client",
224 "nightly" 199 "notify"
225 ], 200 ],
226 "default": "stable", 201 "default": "client",
227 "markdownEnumDescriptions": [ 202 "description": "Controls file watching implementation."
228 "`\"stable\"` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general",
229 "`\"nightly\"` updates are shipped daily (extension updates automatically by downloading artifacts directly from GitHub), they contain cutting-edge features and latest bug fixes. These releases help us get your feedback very quickly and speed up rust-analyzer development **drastically**"
230 ],
231 "markdownDescription": "Choose `\"nightly\"` updates to get the latest features and bug fixes every day. While `\"stable\"` releases occur weekly and don't contain cutting-edge features from VSCode proposed APIs"
232 }, 203 },
233 "rust-analyzer.updates.askBeforeDownload": { 204 "rust-analyzer.files.exclude": {
205 "type": "array",
206 "items": {
207 "type": "string"
208 },
209 "default": [],
210 "description": "Paths to exclude from analysis."
211 },
212 "rust-analyzer.notifications.workspaceLoaded": {
234 "type": "boolean", 213 "type": "boolean",
235 "default": true, 214 "markdownDescription": "Whether to show `workspace loaded` message."
236 "description": "Whether to ask for permission before downloading any files from the Internet"
237 }, 215 },
238 "rust-analyzer.serverPath": { 216 "rust-analyzer.notifications.cargoTomlNotFound": {
239 "type": [ 217 "type": "boolean",
240 "null", 218 "markdownDescription": "Whether to show `can't find Cargo.toml` error message"
241 "string" 219 },
242 ], 220
243 "default": null, 221 "rust-analyzer.cargo.noDefaultFeatures": {
244 "description": "Path to rust-analyzer executable (points to bundled binary by default). If this is set, then \"rust-analyzer.updates.channel\" setting is not used" 222 "type": "boolean",
223 "default": false,
224 "markdownDescription": "Do not activate the `default` feature"
245 }, 225 },
246 "rust-analyzer.excludeGlobs": { 226 "rust-analyzer.cargo.allFeatures": {
227 "type": "boolean",
228 "default": true,
229 "description": "Activate all available features"
230 },
231 "rust-analyzer.cargo.features": {
247 "type": "array", 232 "type": "array",
248 "items": { 233 "items": {
249 "type": "string" 234 "type": "string"
250 }, 235 },
251 "default": [], 236 "default": [],
252 "description": "Paths to exclude from analysis" 237 "description": "List of features to activate"
253 }, 238 },
254 "rust-analyzer.rustfmtArgs": { 239 "rust-analyzer.cargo.loadOutDirsFromCheck": {
240 "type": "boolean",
241 "default": false,
242 "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs"
243 },
244 "rust-analyzer.rustfmt.extraArgs": {
255 "type": "array", 245 "type": "array",
256 "items": { 246 "items": {
257 "type": "string" 247 "type": "string"
@@ -259,65 +249,30 @@
259 "default": [], 249 "default": [],
260 "description": "Additional arguments to rustfmt" 250 "description": "Additional arguments to rustfmt"
261 }, 251 },
262 "rust-analyzer.useClientWatching": { 252 "rust-analyzer.checkOnSave.enable": {
263 "type": "boolean", 253 "type": "boolean",
264 "default": true, 254 "default": true,
265 "description": "client provided file watching instead of notify watching." 255 "markdownDescription": "Run specified `cargo check` command for diagnostics on save"
266 }, 256 },
267 "rust-analyzer.cargo-watch.enable": { 257 "rust-analyzer.checkOnSave.extraArgs": {
268 "type": "boolean",
269 "default": true,
270 "markdownDescription": "Run specified `cargo-watch` command for diagnostics on save"
271 },
272 "rust-analyzer.cargo-watch.arguments": {
273 "type": "array", 258 "type": "array",
274 "items": { 259 "items": {
275 "type": "string" 260 "type": "string"
276 }, 261 },
277 "markdownDescription": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", 262 "markdownDescription": "Extra arguments for `cargo check`",
278 "default": [] 263 "default": []
279 }, 264 },
280 "rust-analyzer.cargo-watch.command": { 265 "rust-analyzer.checkOnSave.command": {
281 "type": "string",
282 "markdownDescription": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )",
283 "default": "check"
284 },
285 "rust-analyzer.cargo-watch.allTargets": {
286 "type": "boolean",
287 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)",
288 "default": true
289 },
290 "rust-analyzer.trace.server": {
291 "type": "string", 266 "type": "string",
292 "scope": "window", 267 "default": "check",
293 "enum": [ 268 "markdownDescription": "Cargo command to use for `cargo check`"
294 "off",
295 "messages",
296 "verbose"
297 ],
298 "enumDescriptions": [
299 "No traces",
300 "Error only",
301 "Full log"
302 ],
303 "default": "off",
304 "description": "Trace requests to the rust-analyzer"
305 }, 269 },
306 "rust-analyzer.trace.extension": { 270 "rust-analyzer.checkOnSave.allTargets": {
307 "description": "Enable logging of VS Code extensions itself",
308 "type": "boolean", 271 "type": "boolean",
309 "default": false 272 "default": true,
310 }, 273 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)"
311 "rust-analyzer.lruCapacity": {
312 "type": [
313 "null",
314 "integer"
315 ],
316 "default": null,
317 "minimum": 0,
318 "exclusiveMinimum": true,
319 "description": "Number of syntax trees rust-analyzer keeps in memory"
320 }, 274 },
275
321 "rust-analyzer.inlayHints.typeHints": { 276 "rust-analyzer.inlayHints.typeHints": {
322 "type": "boolean", 277 "type": "boolean",
323 "default": true, 278 "default": true,
@@ -343,29 +298,79 @@
343 "exclusiveMinimum": true, 298 "exclusiveMinimum": true,
344 "description": "Maximum length for inlay hints" 299 "description": "Maximum length for inlay hints"
345 }, 300 },
346 "rust-analyzer.cargoFeatures.noDefaultFeatures": { 301
302 "rust-analyzer.completion.addCallParenthesis": {
347 "type": "boolean", 303 "type": "boolean",
348 "default": false, 304 "default": true,
349 "markdownDescription": "Do not activate the `default` feature" 305 "description": "Whether to add parenthesis when completing functions"
350 }, 306 },
351 "rust-analyzer.cargoFeatures.allFeatures": { 307 "rust-analyzer.completion.addCallArgumentSnippets": {
352 "type": "boolean", 308 "type": "boolean",
353 "default": true, 309 "default": true,
354 "description": "Activate all available features" 310 "description": "Whether to add argument snippets when completing functions"
355 }, 311 },
356 "rust-analyzer.cargoFeatures.features": { 312 "rust-analyzer.completion.postfix.enable": {
357 "type": "array", 313 "type": "boolean",
358 "items": { 314 "default": true,
359 "type": "string" 315 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc."
360 }, 316 },
361 "default": [], 317 "rust-analyzer.callInfo.full": {
362 "description": "List of features to activate" 318 "type": "boolean",
319 "description": "Show function name and docs in parameter hints"
363 }, 320 },
364 "rust-analyzer.cargoFeatures.loadOutDirsFromCheck": { 321
322 "rust-analyzer.highlighting.semanticTokens": {
365 "type": "boolean", 323 "type": "boolean",
366 "default": false, 324 "default": false,
367 "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs" 325 "description": "Use proposed semantic tokens API for syntax highlighting"
368 } 326 },
327 "rust-analyzer.updates.channel": {
328 "type": "string",
329 "enum": [
330 "stable",
331 "nightly"
332 ],
333 "default": "stable",
334 "markdownEnumDescriptions": [
335 "`\"stable\"` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general",
336 "`\"nightly\"` updates are shipped daily (extension updates automatically by downloading artifacts directly from GitHub), they contain cutting-edge features and latest bug fixes. These releases help us get your feedback very quickly and speed up rust-analyzer development **drastically**"
337 ],
338 "markdownDescription": "Choose `\"nightly\"` updates to get the latest features and bug fixes every day. While `\"stable\"` releases occur weekly and don't contain cutting-edge features from VSCode proposed APIs"
339 },
340 "rust-analyzer.updates.askBeforeDownload": {
341 "type": "boolean",
342 "default": true,
343 "description": "Whether to ask for permission before downloading any files from the Internet"
344 },
345 "rust-analyzer.serverPath": {
346 "type": [
347 "null",
348 "string"
349 ],
350 "default": null,
351 "description": "Path to rust-analyzer executable (points to bundled binary by default). If this is set, then \"rust-analyzer.updates.channel\" setting is not used"
352 },
353 "rust-analyzer.trace.server": {
354 "type": "string",
355 "scope": "window",
356 "enum": [
357 "off",
358 "messages",
359 "verbose"
360 ],
361 "enumDescriptions": [
362 "No traces",
363 "Error only",
364 "Full log"
365 ],
366 "default": "off",
367 "description": "Trace requests to the rust-analyzer"
368 },
369 "rust-analyzer.trace.extension": {
370 "description": "Enable logging of VS Code extensions itself",
371 "type": "boolean",
372 "default": false
373 },
369 } 374 }
370 }, 375 },
371 "problemPatterns": [ 376 "problemPatterns": [