Add config for cargo-watch trace

This commit is contained in:
Edwin Cheng 2019-04-02 13:07:40 +08:00
parent b84d0fc1a3
commit ee05eafe6c
5 changed files with 67 additions and 15 deletions

View file

@ -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',