Stream: t-compiler/wg-rls-2.0

Topic: format on save and rustc

nikomatsakis (Apr 06 2020 at 21:13, on Zulip):

Hmm so, when editing rustc at least, i'm not finding that "format on save" is working. I've got the vscode option enabled. I'm not sure why this might be? Something I can look to ..?

Also, is it possible to configure the path to rustfmt that rust-analyzer uses?

nikomatsakis (Apr 06 2020 at 21:14, on Zulip):

Also, is "format on save" functionality implemented in the LSP server, or the vscode plugin?

nikomatsakis (Apr 06 2020 at 21:15, on Zulip):

Ah, I might not have had the extension setup on this particular ssh host

matklad (Apr 06 2020 at 21:41, on Zulip):

The option to override rustfmt is “rust-analyzer.rustfmt.overrideCommand”.

The general “reformat” functionality is in LSP, “format on save” is how an
editor might choose to expose this functionality.

Last update: Sep 30 2020 at 16:45UTC