We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e234e3 + 0c77bce commit cc016dfCopy full SHA for cc016df
crates/ide-completion/src/context/analysis.rs
@@ -123,10 +123,11 @@ fn expand(
123
) -> Option<ExpansionResult> {
124
let _p = tracing::info_span!("CompletionContext::expand").entered();
125
126
+ // Left biased since there may already be an identifier token there, and we appended to it.
127
if !sema.might_be_inside_macro_call(&fake_ident_token)
128
&& original_file
129
.token_at_offset(original_offset + relative_offset)
- .right_biased()
130
+ .left_biased()
131
.is_some_and(|original_token| !sema.might_be_inside_macro_call(&original_token))
132
{
133
// Recursion base case.
0 commit comments