This page describes what Legacy Mode is.
It is how the extension worked before the Rust Language Server Mode had been added.
The extension supports the following features for this mode:
- Formatting the active document
- Executing one of the built-in Cargo commands and showing diagnostics (warnings, errors, etc.)
- Navigating to a symbol
Legacy Mode requires the following tools to function:
racer
rustfmt
rustsym
If any of the tools are not found, the extension will offer to install them. A "Rust Tools Missing" item in the status bar will also appear; click on the item to install the missing tools.
The extension supports configuration of the tools:
You may also configure Legacy Mode via configuration parameters.
The "rust.showOutput"
configuration parameter controls whether the output channel should be shown when a Cargo command starts executing.
The possible values:
true
- the output channel should be shownfalse
- the output channel shouldn't be shown
The output channel will not be shown under any of the following conditions:
"rust.executeCargoCommandInTerminal"
is set totrue
"rust.actionOnSave"
is set to"check"