Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(macos): add a project opened over a fullscreen tab group as a tab (#1467)

l0ng-ai73be53b6d9e8
diff --git a/src-tauri/src/macos.rs b/src-tauri/src/macos.rs
index 36cb01413..dcb8bc5f5 100644
--- a/src-tauri/src/macos.rs
+++ b/src-tauri/src/macos.rs
@@ -46,7 +46,9 @@ pub fn new_project_tab_target(app: &AppHandle, launch: &Launch) -> IdeResult<Opt
let host = app.state::<crate::state::AppState>();
host.project(w.label()).is_ok_and(|p| !p.light) || host.remote_dev.get(w.label()).is_some()
});
- let fullscreen = active.as_ref().is_some_and(|w| w.is_fullscreen().unwrap_or(false));
+ // A project-tab group is fullscreen through simple fullscreen, which the native flag misses.
+ let fullscreen =
+ active.as_ref().is_some_and(|w| w.is_fullscreen().unwrap_or(false) || is_simple_fullscreen(w.label()));
let light_edit = launch.project.is_none() && launch.remote.is_none();
Ok(should_group_new_project(tabbing_preference(app)?, fullscreen, active.is_some(), light_edit)
.then_some(active)