diff options
author | Lukas Wirth <[email protected]> | 2021-06-14 14:25:10 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-06-14 14:25:10 +0100 |
commit | a93d166f0fecb748d8cb04aab7f5406bf6308c2d (patch) | |
tree | ceda7b8ea1bf1c2949c75191e4faa41693f8f19e /crates/ide/src/lib.rs | |
parent | 388a91c8a8d542f7a8e0ddff879cce4d4c2b20ae (diff) |
Make documentation on hover configurable
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r-- | crates/ide/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 0511efae3..8d0270319 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs | |||
@@ -407,9 +407,10 @@ impl Analysis { | |||
407 | &self, | 407 | &self, |
408 | position: FilePosition, | 408 | position: FilePosition, |
409 | links_in_hover: bool, | 409 | links_in_hover: bool, |
410 | documentation: bool, | ||
410 | markdown: bool, | 411 | markdown: bool, |
411 | ) -> Cancellable<Option<RangeInfo<HoverResult>>> { | 412 | ) -> Cancellable<Option<RangeInfo<HoverResult>>> { |
412 | self.with_db(|db| hover::hover(db, position, links_in_hover, markdown)) | 413 | self.with_db(|db| hover::hover(db, position, links_in_hover, documentation, markdown)) |
413 | } | 414 | } |
414 | 415 | ||
415 | /// Return URL(s) for the documentation of the symbol under the cursor. | 416 | /// Return URL(s) for the documentation of the symbol under the cursor. |