workspace: Handle non-cloneable items better (#41215)

When trying to split and clone a non clone-able workspace item we now
attempt split and move instead of doing nothing. Additionally we disable
the split menu buttons if we can't split the active item at all.

Release Notes:

- Improved handling of unsplittable panes
This commit is contained in:
Lukas Wirth
2025-10-26 13:24:26 +00:00
committed by GitHub
parent 61e4a1d16a
commit fd3ca0303f
23 changed files with 196 additions and 65 deletions
+4
View File
@@ -556,6 +556,10 @@ impl Item for CommitView {
});
}
fn can_split(&self) -> bool {
true
}
fn clone_on_split(
&self,
_workspace_id: Option<workspace::WorkspaceId>,