From a93d166f0fecb748d8cb04aab7f5406bf6308c2d Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 14 Jun 2021 15:25:10 +0200 Subject: Make documentation on hover configurable --- editors/code/package.json | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'editors/code') diff --git a/editors/code/package.json b/editors/code/package.json index 0f3ed48a0..43a5cc2b5 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -640,6 +640,16 @@ "default": true, "type": "boolean" }, + "rust-analyzer.hover.documentation": { + "markdownDescription": "Whether to show documentation on hover.", + "default": true, + "type": "boolean" + }, + "rust-analyzer.hover.linksInHover": { + "markdownDescription": "Use markdown syntax for links in hover.", + "default": true, + "type": "boolean" + }, "rust-analyzer.hoverActions.debug": { "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", "default": true, @@ -670,11 +680,6 @@ "default": true, "type": "boolean" }, - "rust-analyzer.hoverActions.linksInHover": { - "markdownDescription": "Use markdown syntax for links in hover.", - "default": true, - "type": "boolean" - }, "rust-analyzer.inlayHints.chainingHints": { "markdownDescription": "Whether to show inlay type hints for method chains.", "default": true, -- cgit v1.2.3 From 178b5ffba316164fba86b86a67e9402b226fbc48 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 14 Jun 2021 15:44:32 +0200 Subject: Add configuration deprecation --- editors/code/package.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'editors/code') diff --git a/editors/code/package.json b/editors/code/package.json index 43a5cc2b5..c24d3491c 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -680,6 +680,12 @@ "default": true, "type": "boolean" }, + "rust-analyzer.hoverActions.linksInHover": { + "markdownDescription": "Use markdown syntax for links in hover.", + "default": false, + "deprecationMessage": "Use hover.linksInHover instead", + "type": "boolean" + }, "rust-analyzer.inlayHints.chainingHints": { "markdownDescription": "Whether to show inlay type hints for method chains.", "default": true, -- cgit v1.2.3 From 43098d99ae9ee3d102ce54510d7885bae58e5ac7 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 21 Jun 2021 16:01:03 +0200 Subject: Remove deprecation support in config --- editors/code/package.json | 6 ------ 1 file changed, 6 deletions(-) (limited to 'editors/code') diff --git a/editors/code/package.json b/editors/code/package.json index c24d3491c..43a5cc2b5 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -680,12 +680,6 @@ "default": true, "type": "boolean" }, - "rust-analyzer.hoverActions.linksInHover": { - "markdownDescription": "Use markdown syntax for links in hover.", - "default": false, - "deprecationMessage": "Use hover.linksInHover instead", - "type": "boolean" - }, "rust-analyzer.inlayHints.chainingHints": { "markdownDescription": "Whether to show inlay type hints for method chains.", "default": true, -- cgit v1.2.3