From c3cc3612948be235577ccfd55990062829c8cfbb Mon Sep 17 00:00:00 2001 From: Robin van Dijk Date: Mon, 5 Oct 2020 19:27:29 +0200 Subject: honor content_format clientcap This removes all markdown when the client does not support the markdown MarkupKind Otherwise the output on the editor will have some markdown boilerplate, making it less readable --- crates/ide/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/ide/src/lib.rs') diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 1aa673cf8..57f3581b6 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs @@ -46,6 +46,7 @@ mod syntax_highlighting; mod syntax_tree; mod typing; mod link_rewrite; +mod markdown_remove; use std::sync::Arc; @@ -376,8 +377,9 @@ impl Analysis { &self, position: FilePosition, links_in_hover: bool, + markdown: bool, ) -> Cancelable>> { - self.with_db(|db| hover::hover(db, position, links_in_hover)) + self.with_db(|db| hover::hover(db, position, links_in_hover, markdown)) } /// Computes parameter information for the given call expression. -- cgit v1.2.3