rust-analyzer
rust-analyzer copied to clipboard
Autocompletion for variables not available on wasm32 target
With the setting target="wasm32-unknown-unknown", rust-analyzer refuses to autocomplete methods on variables. This behavior doesn't happen on the usual x64 target. Here is screenshot of the issue, where it doesn't recognize the window variable defined outside. Similar things happen for the event_loop variable as well.
This example is from this small example: https://github.com/mbrc12/rust-analyzer-example/ , compiled using wasm-pack build --target web.
Might this be a setup error from my side? My rust-analyzer settings for this project are here: https://github.com/mbrc12/rust-analyzer-example/blob/main/.nlsp/rust_analyzer.json .
Many thanks for the help!