settings: Skip terminal env vars with substitutions in vscode import (#42464)

Closes https://github.com/zed-industries/zed/issues/40547

Release Notes:

- Fixed vscode import creating faulty terminal env vars in terminal
settings
This commit is contained in:
Lukas Wirth
2025-11-11 16:15:12 +00:00
committed by GitHub
parent 03acbb7de3
commit 83351283e4
3 changed files with 17 additions and 5 deletions
+1 -3
View File
@@ -350,8 +350,7 @@ impl AutoUpdater {
pub fn start_polling(&self, cx: &mut Context<Self>) -> Task<Result<()>> {
cx.spawn(async move |this, cx| {
#[cfg(target_os = "windows")]
{
if cfg!(target_os = "windows") {
use util::ResultExt;
cleanup_windows()
@@ -903,7 +902,6 @@ async fn install_release_macos(
Ok(None)
}
#[cfg(target_os = "windows")]
async fn cleanup_windows() -> Result<()> {
let parent = std::env::current_exe()?
.parent()