We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm using Faux for mocking my components. If my component impl block is marked with Faux macros, I don't get completions inside it.
rust-analyzer version: 0.3.2466-standalone
rustc version: rustc 1.86.0 (05f9846f8 2025-03-31)
editor or extension: Zed (0.187.8), VSCode (RA 0.3.2466)
code snippet to reproduce:
struct ComponentA; impl ComponentA { pub fn do_something(&self) {} } #[cfg_attr(test, faux::create)] pub struct ComponentB { a: ComponentA, } #[cfg_attr(test, faux::methods)] impl ComponentB { pub fn do_something(&self) { self.a.do_something(); // no completion here } }
The text was updated successfully, but these errors were encountered:
Oh this is might_be_inside_macro_call() not considering cfg_attr.
might_be_inside_macro_call()
cfg_attr
I think we ought to stop the pile of hacks we're doing there and instead use semantics properly.
Sorry, something went wrong.
Also, for some reason it's only "dot "completions, on instances. Something like ComponentA:: shows completions fine (if I add e.g. new method there).
ComponentA::
new
@ChayimFriedman2 @Veykril This is still not working with 0.3.2482-standalone
Oh sorry! I didn't check it is fixed.
ChayimFriedman2
Successfully merging a pull request may close this issue.
Hi,
I'm using Faux for mocking my components.
If my component impl block is marked with Faux macros, I don't get completions inside it.
rust-analyzer version: 0.3.2466-standalone
rustc version: rustc 1.86.0 (05f9846f8 2025-03-31)
editor or extension: Zed (0.187.8), VSCode (RA 0.3.2466)
code snippet to reproduce:
The text was updated successfully, but these errors were encountered: