recent_projects: Do not try to watch /etc/ssh/ssh_config on windows (#42200)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-11-07 15:46:37 +00:00
committed by GitHub
parent e72c3bf20d
commit 74bf1a170d
4 changed files with 11 additions and 9 deletions
+6 -2
View File
@@ -460,8 +460,12 @@ pub fn user_ssh_config_file() -> PathBuf {
home_dir().join(".ssh/config")
}
pub fn global_ssh_config_file() -> &'static Path {
Path::new("/etc/ssh/ssh_config")
pub fn global_ssh_config_file() -> Option<&'static Path> {
if cfg!(windows) {
None
} else {
Some(Path::new("/etc/ssh/ssh_config"))
}
}
/// Returns candidate paths for the vscode user settings file