Open Barsonax opened 5 years ago
I second this. I have no autocompletion whatsoever when using web-sys.
Same problem here, same example.
Updated the WebGl example version to latests web_sys and js_sys, and updated my toolchains and RLS.
Tried the method above, to no avail.
I do get autocompletion for web_sys::
that suggests window
and some info on web_sys::window
if I hover it. But that's it. No trait or method gets completed for the rest of the code.
It looks like the reason only web_sys::window
shows up in autocomplete is that it's the only one in lib.rs
.
The rest of the definitions are in .webidl
files, which get loaded in by build.rs
at build time.
Because of that, I'd say the problem lies with the web-sys crate. The most relevant issue I could find is this one, but it doesn't seem very active.
How to reproduce:
wasm-pack build
andcargo build
). It should build with no problems.