[ty] Make auto-import ignore symbols in modules starting with a _

This applies recursively. So if *any* component of a module name starts
with a `_`, then symbols from that module are excluded from auto-import.

The exception is when it's a module within first party code. Then we
want to include it in auto-import.
This commit is contained in:
Andrew Gallant
2025-12-03 14:59:21 -05:00
committed by Andrew Gallant
parent 2a38395bc8
commit 32f400a457
7 changed files with 111 additions and 9 deletions

View File

@@ -594,7 +594,7 @@ impl SearchPath {
)
}
pub(crate) fn is_first_party(&self) -> bool {
pub fn is_first_party(&self) -> bool {
matches!(&*self.0, SearchPathInner::FirstParty(_))
}