diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-18 08:37:04 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-18 08:37:04 +0100 |
commit | c6ed08967193cadc927dfaf422601bcd160a6fc9 (patch) | |
tree | aaccb210353786d000a3455264e368b76f61ff98 /editors/code/package.json | |
parent | 31611da2538e66027ea67482235f6b8659bedf09 (diff) | |
parent | 78817a319476d8af40c4f78e8c47dc958781f88f (diff) |
Merge #4499
4499: CodeLens configuration options r=vsrs a=vsrs
This PR
- adds an option to granularly enable\disable all CodeLens, just like the TypeScript extension.
- fixes a minor bug for doctests. It makes no sense to show `Debug` lens for them as cargo `Can't skip running doc tests with --no-run`.
Co-authored-by: vsrs <[email protected]>
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 4045ab3d2..d899f60e3 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -443,6 +443,26 @@ | |||
443 | "type": "object", | 443 | "type": "object", |
444 | "default": {}, | 444 | "default": {}, |
445 | "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }" | 445 | "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }" |
446 | }, | ||
447 | "rust-analyzer.lens.enable": { | ||
448 | "description": "Whether to show CodeLens in Rust files.", | ||
449 | "type": "boolean", | ||
450 | "default": true | ||
451 | }, | ||
452 | "rust-analyzer.lens.run": { | ||
453 | "markdownDescription": "Whether to show Run lens. Only applies when `#rust-analyzer.lens.enable#` is set.", | ||
454 | "type": "boolean", | ||
455 | "default": true | ||
456 | }, | ||
457 | "rust-analyzer.lens.debug": { | ||
458 | "markdownDescription": "Whether to show Debug lens. Only applies when `#rust-analyzer.lens.enable#` is set.", | ||
459 | "type": "boolean", | ||
460 | "default": true | ||
461 | }, | ||
462 | "rust-analyzer.lens.implementations": { | ||
463 | "markdownDescription": "Whether to show Implementations lens. Only applies when `#rust-analyzer.lens.enable#` is set.", | ||
464 | "type": "boolean", | ||
465 | "default": true | ||
446 | } | 466 | } |
447 | } | 467 | } |
448 | }, | 468 | }, |