Merge main into feat/scripts-api-d3-layers-artboards

This commit is contained in:
dotCooCoo committed 2026-11-30 11:45:53 -08:00
commit 24bd70fa08
193 files changed
+6790 -1849

No files matched your search

+8
View File
@@ -2650,7 +2650,15 @@ impl Session {
o.insert("unhandledRejectionCount".into(), json!(job.realm.unhandled_rejection_count()));
}
close_run(self, host, &mut report, console::Ending::Finished);
let tool = host.dom.chosen_tool();
self.end_job(job, false);
// The tool `app.selectTool` chose last becomes the current tool, as a choice on the
// toolbar makes it; the run's changes are kept when the tool cannot be chosen.
if let Some(id) = tool
&& let Err(e) = self.select_tool(id, self.last_view)
{
report["toolError"] = json!(e.to_string());
}
self.script_report = Some(report.clone());
Ok(report)
}