Skip to content

Intradoc links whose addresses are specified at the end as [name]: address doesn't display correctly in VS Code's mouse hover #19424

Open
@KSXGitHub

Description

@KSXGitHub

rust-analyzer version: 0.3.2345-standalone

rustc version: 1.81.0

editor or extension: VSCode

relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)

repository link (if public, optional):

code snippet to reproduce:

/// Link to a [type].
///
/// [type]: core::option::Option
pub fn add(left: u64, right: u64) -> u64 {
    left + right
}

cargo doc would create the link correctly as expected:

cargo doc screenshot

but mouse hovering on the item does not show the link:

VS Code screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-hoverhover featureC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions