Update crates/ide-completion/src/context.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
parent
f26d5484d8
commit
a6d0e342a3
@ -569,7 +569,7 @@ impl<'a> CompletionContext<'a> {
|
|||||||
// completing on
|
// completing on
|
||||||
let original_token = original_file.syntax().token_at_offset(offset).left_biased()?;
|
let original_token = original_file.syntax().token_at_offset(offset).left_biased()?;
|
||||||
|
|
||||||
// try to skip completions on path with qinvalid colons
|
// try to skip completions on path with invalid colons
|
||||||
// this approach works in normal path and inside token tree
|
// this approach works in normal path and inside token tree
|
||||||
match original_token.kind() {
|
match original_token.kind() {
|
||||||
T![:] => {
|
T![:] => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user