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.