This is a repost of Web-sys, intelliJ, GotoClass from > 90 days ago.
Does anyone have "GotoClass" (or any time of jumping) working with Rust / web-sys crate ?
The main issue is that web-sys puts everything behind feature flags, i.e. we have something like:
web_sys = { version = "0.3.45", package = "web-sys", features=["console", 'HtmlImageElement']}
This appears to somehow confuse IntelliJ into not recognizing the HtmlImageElement defined in web_sys, this not allowing me to jump to the class.
In particular, if I open up the IntelliJ "go to class" finder, it can autocomplete / find the 'HtmlImageElement' (so it is somehow parsing the file).
On the other hand, if we have a piece of code like:
let canvas: web_sys::HtmlCanvasElement
if I put the cursor over the 'HtmlCanvasElement' and try to jump, nothing happens.
Does anyone have jump / auto completion working with web_sys classes ?