5

fix: make custom expr prefix completions to understand refs by feniljain · Pull...

 1 year ago
source link: https://github.com/rust-lang/rust-analyzer/pull/13517
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Contributor

@feniljain feniljain commented Oct 30, 2022

edited

Possible fix of #7929

While reviewing the postfix completion code I saw that while calling add_custom_postfix_completions we were doing it under the part where reference was not taken into consideration, but as we are only adding postfix completions with Expr scope ( source )

I shifted the add_custom_postfix_completions call to part where references are considered

I am not sure if this is the correct fix or I am understanding the problem exactly but this small move seemed to have fixed the issue :)

All reactions

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK