Split hover actions config into its own config struct

This commit is contained in:
Lukas Wirth 2021-06-21 21:41:06 +02:00
parent 8b3d93ee29
commit 99c95b8fa1
4 changed files with 110 additions and 81 deletions

View file

@ -408,11 +408,9 @@ impl Analysis {
pub fn hover(
&self,
position: FilePosition,
links_in_hover: bool,
documentation: bool,
markdown: bool,
config: &HoverConfig,
) -> Cancellable<Option<RangeInfo<HoverResult>>> {
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.