mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Guard auto cargo watch behind a config option
This commit is contained in:
parent
60cac29964
commit
7c2595c268
3 changed files with 17 additions and 0 deletions
|
@ -153,6 +153,10 @@ export const autoCargoWatchTask: vscode.Task = {
|
|||
* that, when accepted, allow us to `cargo install cargo-watch` and then run it.
|
||||
*/
|
||||
export async function interactivelyStartCargoWatch() {
|
||||
if (!Server.config.enableCargoWatchOnStartup) {
|
||||
return;
|
||||
}
|
||||
|
||||
const execAsync = util.promisify(exec);
|
||||
|
||||
const watch = await vscode.window.showInformationMessage(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue