unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.79k stars 270 forks source link

Share Search ignores definitions within subprojects #4693

Open ChrisPenner opened 9 months ago

ChrisPenner commented 9 months ago

At the moment search ignores things within libs, but it uses dependency mounts to do this, and we don't make a distinction between actual lib dependencies and sub-projects at the moment.

Edit: Whoops, this issue should be on Share.

ceedubs commented 9 months ago

What are subprojects?

ChrisPenner commented 9 months ago

A "subproject" is detected wherever you have non-root namespaces with their own libs in your branch:

If myproject is your root namespace (i.e. your branch root)

myproject
├── lib
│   └── base
└── examples
    └── thing
        └── lib
            └── base

Here myproject.examples.thing is inferred to be a subproject because it's got a lib namespace with something in it.