Skip to content

"open declaration" should open module in same project instead of module in other workspace project with the same name #65

@davidmichaelkarr

Description

@davidmichaelkarr

Let's say that I have two Yang projects in the workspace, projects "yang1" and "yang2". Project "yang2" has module "bar.yang", and both projects have a module named "baz.yang", with similar but slightly different specifications.

Module "bar.yang" in "yang2" imports module "baz". It also references a type defined in "baz" with a prefix.

While editing module "bar.yang", put the cursor on the type name reference from module "baz". Press F3 for "open declaration". It's a reasonable assumption that this will open "baz.yang" in "yang2". In my test case, it opens "baz.yang" in project "yang1".

This behavior is likely dependent on the order in which these modules are indexed. I don't know whether it will matter, but other project names with different ordering might produce different results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions