mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
cli: only connect to existing tunnel process when quality is the same (#178446)
Fixes #178089
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user