Skip to content

Document Links may link to the wrong version of a package #5694

@DanTup

Description

@DanTup

While looking at #5692, I realised that DocumentLinks would also just find the "first" version of a package: URI to link to, which could be incorrect if a workspace has projects that reference different versions of the same dependency.

We should prefer to look at the package map for the project containing the source file, and only fall back to finding another match if there isn't one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions