-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bindings' long unformatted lines does not work well with RLS #1457
Comments
Heh this is quite the interesting issue! We actually already have support for formatting the generated binding by setting the Nowadays though with |
@alexcrichton Also, we should change the docs so they properly format things. I often try to use the |
This commit switches to executing `rustfmt` by default on `web-sys`-generated bindings. This improves situations like "view source" in Rustdoc as well as the IDE interactive debugging experience. This was initially disabled by default because `rustfmt` took so long to execute, but nowadays `web-sys` is by default much smaller so there's much less need to avoid running `rustfmt` in fear of it taking too long. Closes rustwasm#1457
I'm not sure when this regressed, but it seems that the |
This only works if |
Describe the Bug
RLS (and by extension vscode-rust) doesn't like really long lines. It expects the code to be formatted reasonably. This as a result causes some issues. Errors are shown about RLS not being able to tokenize long lines for performance reasons, and tooltips show the entire line, slowing down VSCode in the process:
Expected Behavior
It would be nice if these bindings were run through rustfmt, or just formatted a bit more friendly to RLS.
The text was updated successfully, but these errors were encountered: