You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The solution in OpenDeclarationAction requires casting the "editorInput" to "FileEditorInput" and getting the project from that, and passing that to the search function. A byproduct of this change is that you could now set the current project to depend on another project, and it will look in that project in addition to the current project. This creates a new concern, in that perhaps it should prefer defs in the current project over defs in dependent projects. I haven't yet looked at the parsing process in these scenarios.
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.
The text was updated successfully, but these errors were encountered: