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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user