From 99c95b8fa15f2d9239625c19463f552c84ad99a2 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 21 Jun 2021 21:41:06 +0200 Subject: Split hover actions config into its own config struct --- crates/ide/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crates/ide/src/lib.rs') diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index aac084012..e24a32218 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs @@ -408,11 +408,9 @@ impl Analysis { pub fn hover( &self, position: FilePosition, - links_in_hover: bool, - documentation: bool, - markdown: bool, + config: &HoverConfig, ) -> Cancellable>> { - self.with_db(|db| hover::hover(db, position, links_in_hover, documentation, markdown)) + self.with_db(|db| hover::hover(db, position, config)) } /// Return URL(s) for the documentation of the symbol under the cursor. -- cgit v1.2.3