diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-21 15:15:49 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-21 15:15:49 +0100 |
commit | 25bf451c8426a68ecfdc3a1d1be1db9702dd41d8 (patch) | |
tree | 1d9d6c49faca0c36178d2bf5a6e20de0f88df094 /crates/ide/src/lib.rs | |
parent | 5567b8a63214ce9bf2d4fdd6b4a8bd9c2c3eded7 (diff) | |
parent | 43098d99ae9ee3d102ce54510d7885bae58e5ac7 (diff) |
Merge #9264
9264: feat: Make documentation on hover configurable r=Veykril a=Veykril
This also implements deprecation support for config options as this renames `hoverActions_linksInHover` to `hover_linksInHover`.
Fixes #9232
Co-authored-by: Lukas Wirth <[email protected]>
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 4bd073cc3..3798f32cc 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs | |||
@@ -408,9 +408,10 @@ impl Analysis { | |||
408 | &self, | 408 | &self, |
409 | position: FilePosition, | 409 | position: FilePosition, |
410 | links_in_hover: bool, | 410 | links_in_hover: bool, |
411 | documentation: bool, | ||
411 | markdown: bool, | 412 | markdown: bool, |
412 | ) -> Cancellable<Option<RangeInfo<HoverResult>>> { | 413 | ) -> Cancellable<Option<RangeInfo<HoverResult>>> { |
413 | self.with_db(|db| hover::hover(db, position, links_in_hover, markdown)) | 414 | self.with_db(|db| hover::hover(db, position, links_in_hover, documentation, markdown)) |
414 | } | 415 | } |
415 | 416 | ||
416 | /// Return URL(s) for the documentation of the symbol under the cursor. | 417 | /// Return URL(s) for the documentation of the symbol under the cursor. |