Skip to content

No autocompletion with rust-analyzer in #[wasm_bindgen] attributed function #2671

New issue

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

Closed
not-my-profile opened this issue Sep 2, 2021 · 1 comment
Labels

Comments

@not-my-profile
Copy link

Summary

When I open the DOM example with VS Code and the latest rust-analyzer, I don't get any autocompletion after typing document..

Additional Details

When I remove the #[wasm_bindgen] attribute autocompletion works fine, so the proc macro attribute apparently somehow breaks the autocompletion. I have rust-analyzer.procMacro.enable enabled and I also tried enabling rust-analyzer.experimental.procAttrMacros but that didn't help.

@not-my-profile not-my-profile changed the title Missing autocompletion for web-sys with rust-analyzer in #[wasm_bindgen] attributed function No autocompletion with rust-analyzer in #[wasm_bindgen] attributed function Sep 2, 2021
@not-my-profile
Copy link
Author

Closing, because this is rust-lang/rust-analyzer#9866.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant