diff --git a/cli/src/state.rs b/cli/src/state.rs index 4e68e0322dc..296d1b535d8 100644 --- a/cli/src/state.rs +++ b/cli/src/state.rs @@ -13,7 +13,10 @@ use std::{ use serde::{de::DeserializeOwned, Serialize}; -use crate::util::errors::{wrap, AnyError, NoHomeForLauncherError, WrappedError}; +use crate::{ + constants::VSCODE_CLI_QUALITY, + util::errors::{wrap, AnyError, NoHomeForLauncherError, WrappedError}, +}; const HOME_DIR_ALTS: [&str; 2] = ["$HOME", "~"]; @@ -139,7 +142,10 @@ impl LauncherPaths { /// Lockfile for the running tunnel pub fn tunnel_lockfile(&self) -> PathBuf { - self.root.join("tunnel.lock") + self.root.join(format!( + "tunnel-{}.lock", + VSCODE_CLI_QUALITY.unwrap_or("oss") + )) } /// Suggested path for tunnel service logs, when using file logs