[ty] Add support for relative import completions

We already supported `from .. import <CURSOR>`, but we didn't support
`from ..<CURSOR>`. This adds support for that.
This commit is contained in:
Andrew Gallant
2025-11-20 14:14:53 -05:00
committed by Andrew Gallant
parent 553e568624
commit 1af318534a
2 changed files with 192 additions and 29 deletions

View File

@@ -296,7 +296,7 @@ impl ModuleName {
}
/// Computes the absolute module name from the LHS components of `from LHS import RHS`
pub(crate) fn from_identifier_parts(
pub fn from_identifier_parts(
db: &dyn Db,
importing_file: File,
module: Option<&str>,