[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:
committed by
Andrew Gallant
parent
553e568624
commit
1af318534a
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user