Skip to content

Commit

Permalink
Fix debug tasks and regular tasks overwritting each other
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony-Eid committed Oct 20, 2024
1 parent 2d8954a commit 9d7f42f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion crates/dap_adapters/src/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ impl DebugAdapter for PythonDebugAdapter {
.await?;

// if !unzip_status.success() {
// dbg!(unzip_status);
// Err(anyhow!("failed to unzip debugpy archive"))?;
// }

Expand Down
7 changes: 6 additions & 1 deletion crates/project/src/project_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,12 @@ impl SettingsObserver {
)
.unwrap(),
);
(settings_dir, LocalSettingsKind::Tasks)
(
// Debug task file name has to be unique because it will overwrite tasks
// from .zed/tasks.json file if it is not (It was also being overwritten too)
Arc::from(settings_dir.join("debug").as_path()),
LocalSettingsKind::Tasks,
)
} else {
continue;
};
Expand Down

0 comments on commit 9d7f42f

Please sign in to comment.