Skip to content

Navigate to external metadata doesn't work #16761

Closed

Description

@kerams

F12 on anything from FSharp.Core or any other .NET library.

VS 17.10 Preview 1

Activity

  1. added
    Area-LangService-Navigation
    on Feb 25, 2024
  2. added this to the Backlog milestone on Feb 25, 2024
  3. vzarytovskii commented on Feb 25, 2024

    @vzarytovskii
    Member

    F12 on anything from FSharp.Core or any other .NET library.

    VS 17.10 Preview 1

    Ugh, again...is it only decompiled metadata?

  4. kerams commented on Feb 25, 2024

    @kerams
    ContributorAuthor

    Seems so

  5. added
    Impact-High
    and removed on Mar 4, 2024
  6. self-assigned this
    on Mar 4, 2024
  7. vzarytovskii commented on Apr 10, 2024

    @vzarytovskii
    Member

    It seems to be the issue because roslyn started calling our new IFSharpFindDefinitionService (related issue: #14675) instead of old service. It will be a bit harder to fix since before we were creating an on-demand metadata document, and now we need to provide a document and span.

  8. vzarytovskii commented on Apr 10, 2024

    @vzarytovskii
    Member

    @CyrusNajmabadi @tmat do you folks happen to know how does roslyn navigate to the external source? Might be good idea for us to properly support it. We'll likely want to do it in following order: show source link if available, then show F# decompilation (or rather high level representation).

  9. CyrusNajmabadi commented on Apr 10, 2024

    @CyrusNajmabadi

    Adding @davidwengier our expert here

  10. davidwengier commented on Apr 10, 2024

    @davidwengier
    Member

    Roslyn does the same basic process (source link, then decompilation, then metadata) but I don't think the decompilation system is extensible for other languages. The Source Link stuff might mostly work, but there are probably some gates on it only being done for C#/VB at the moment. For example, we create a project and rehydrate compilation options from the PDB as part of the process, so that stuff probably just fails.

  11. vzarytovskii commented on Apr 15, 2024

    @vzarytovskii
    Member

    Roslyn does the same basic process (source link, then decompilation, then metadata) but I don't think the decompilation system is extensible for other languages. The Source Link stuff might mostly work, but there are probably some gates on it only being done for C#/VB at the moment. For example, we create a project and rehydrate compilation options from the PDB as part of the process, so that stuff probably just fails.

    Ah, I see. Could you please point me to Roslyn's implementation? I see if I can make a workaround meanwhile.

  12. added a commit that references this issue on Apr 15, 2024
    9264c4a
  13. davidwengier commented on Apr 16, 2024

    @davidwengier
    Member

    The main piece of logic for navigating to sourcelink sources starts here: https://github.com/dotnet/roslyn/blob/ca66296efa86bd8078508fe7b38b91b415364f78/src/Features/Core/Portable/PdbSourceDocument/PdbSourceDocumentMetadataAsSourceFileProvider.cs#L66

    That call comes in via the IMetadataAsSourceFileService.GetGeneratedFileAsync, which is implemented here, and a File References on that should hopefully reveal where specific features call into it.

  14. added a commit that references this issue on Apr 17, 2024
    587bc1e
  15. added a commit that references this issue on Apr 18, 2024
    27efc28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area-LangService-NavigationBugImpact-HighRegression

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions