diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-23 19:58:03 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-23 19:58:03 +0000 |
commit | c6d6a7d41213dc06bb1f36745d5eaf8b91a99b99 (patch) | |
tree | a6fd422786b72b621fec4a3c21d7f019656f9b1d /crates/ide/src/syntax_highlighting | |
parent | 20f8e660cafd9db3578b5ff005b84846f09d45f5 (diff) | |
parent | caaeb92882a082bf1ac8b7d74c09ca0295c2ed10 (diff) |
Merge #8178
8178: Show item info when hovering intra doc links r=Veykril a=Veykril

Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide/src/syntax_highlighting')
-rw-r--r-- | crates/ide/src/syntax_highlighting/inject.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide/src/syntax_highlighting/inject.rs b/crates/ide/src/syntax_highlighting/inject.rs index 8e0940184..38bf49348 100644 --- a/crates/ide/src/syntax_highlighting/inject.rs +++ b/crates/ide/src/syntax_highlighting/inject.rs | |||
@@ -190,10 +190,10 @@ pub(super) fn doc_comment( | |||
190 | intra_doc_links.extend( | 190 | intra_doc_links.extend( |
191 | extract_definitions_from_markdown(line) | 191 | extract_definitions_from_markdown(line) |
192 | .into_iter() | 192 | .into_iter() |
193 | .filter_map(|(link, ns, range)| { | 193 | .filter_map(|(range, link, ns)| { |
194 | validate_intra_doc_link(sema.db, &def, &link, ns).zip(Some(range)) | 194 | Some(range).zip(validate_intra_doc_link(sema.db, &def, &link, ns)) |
195 | }) | 195 | }) |
196 | .map(|(def, Range { start, end })| { | 196 | .map(|(Range { start, end }, def)| { |
197 | ( | 197 | ( |
198 | def, | 198 | def, |
199 | TextRange::at( | 199 | TextRange::at( |