mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Add config for cargo-watch trace
This commit is contained in:
parent
b84d0fc1a3
commit
ee05eafe6c
5 changed files with 67 additions and 15 deletions
|
@ -137,11 +137,11 @@ export async function handleSingle(runnable: Runnable) {
|
|||
export async function interactivelyStartCargoWatch(
|
||||
context: vscode.ExtensionContext
|
||||
) {
|
||||
if (Server.config.enableCargoWatchOnStartup === 'disabled') {
|
||||
if (Server.config.cargoWatchOptions.enableOnStartup === 'disabled') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Server.config.enableCargoWatchOnStartup === 'ask') {
|
||||
if (Server.config.cargoWatchOptions.enableOnStartup === 'ask') {
|
||||
const watch = await vscode.window.showInformationMessage(
|
||||
'Start watching changes with cargo? (Executes `cargo watch`, provides inline diagnostics)',
|
||||
'yes',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue