mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Handle errors when cargo watch
fails
This commit is contained in:
parent
97a14d51ed
commit
503920532d
1 changed files with 5 additions and 0 deletions
|
@ -201,6 +201,11 @@ export async function startCargoWatch(
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else if (stderr !== '') {
|
||||||
|
vscode.window.showErrorMessage(
|
||||||
|
`Couldn't run \`cargo watch\`: ${stderr}`
|
||||||
|
);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const provider = await registerCargoWatchProvider(context.subscriptions);
|
const provider = await registerCargoWatchProvider(context.subscriptions);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue