mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
internal: ensure that client and server-side configs are not mixed up
https://github.com/rust-lang/rust/issues/84647 would help big time here.
This commit is contained in:
parent
fb45d2adec
commit
5c1a901035
3 changed files with 11 additions and 13 deletions
|
@ -27,6 +27,11 @@ use crate::{
|
||||||
line_index::OffsetEncoding, lsp_ext::supports_utf8,
|
line_index::OffsetEncoding, lsp_ext::supports_utf8,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Defines the server-side configuration of the rust-analyzer. We generate
|
||||||
|
// *parts* of VS Code's `package.json` config from this.
|
||||||
|
//
|
||||||
|
// However, editor specific config, which the server doesn't know about, should
|
||||||
|
// be specified directly in `package.json`.
|
||||||
config_data! {
|
config_data! {
|
||||||
struct ConfigData {
|
struct ConfigData {
|
||||||
/// The strategy to use when inserting new imports or merging imports.
|
/// The strategy to use when inserting new imports or merging imports.
|
||||||
|
@ -145,8 +150,6 @@ config_data! {
|
||||||
inlayHints_parameterHints: bool = "true",
|
inlayHints_parameterHints: bool = "true",
|
||||||
/// Whether to show inlay type hints for variables.
|
/// Whether to show inlay type hints for variables.
|
||||||
inlayHints_typeHints: bool = "true",
|
inlayHints_typeHints: bool = "true",
|
||||||
/// Whether inlay hints font size should be smaller than editor's font size.
|
|
||||||
inlayHints_smallerHints: bool = "true",
|
|
||||||
|
|
||||||
/// Whether to show `Debug` lens. Only applies when
|
/// Whether to show `Debug` lens. Only applies when
|
||||||
/// `#rust-analyzer.lens.enable#` is set.
|
/// `#rust-analyzer.lens.enable#` is set.
|
||||||
|
|
|
@ -234,11 +234,6 @@ site.
|
||||||
--
|
--
|
||||||
Whether to show inlay type hints for variables.
|
Whether to show inlay type hints for variables.
|
||||||
--
|
--
|
||||||
[[rust-analyzer.inlayHints.smallerHints]]rust-analyzer.inlayHints.smallerHints (default: `true`)::
|
|
||||||
+
|
|
||||||
--
|
|
||||||
Whether inlay hints font size should be smaller than editor's font size.
|
|
||||||
--
|
|
||||||
[[rust-analyzer.lens.debug]]rust-analyzer.lens.debug (default: `true`)::
|
[[rust-analyzer.lens.debug]]rust-analyzer.lens.debug (default: `true`)::
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
|
|
|
@ -283,6 +283,11 @@
|
||||||
"default": true,
|
"default": true,
|
||||||
"description": "Whether to show inlay hints."
|
"description": "Whether to show inlay hints."
|
||||||
},
|
},
|
||||||
|
"rust-analyzer.inlayHints.smallerHints": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true,
|
||||||
|
"description": "Whether inlay hints font size should be smaller than editor's font size."
|
||||||
|
},
|
||||||
"rust-analyzer.updates.channel": {
|
"rust-analyzer.updates.channel": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
@ -654,11 +659,6 @@
|
||||||
"default": true,
|
"default": true,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"rust-analyzer.inlayHints.smallerHints": {
|
|
||||||
"markdownDescription": "Whether inlay hints font size should be smaller than editor's font size.",
|
|
||||||
"default": true,
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"rust-analyzer.lens.debug": {
|
"rust-analyzer.lens.debug": {
|
||||||
"markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
|
"markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
|
||||||
"default": true,
|
"default": true,
|
||||||
|
|
Loading…
Reference in a new issue