git_ui: Add starts_open setting to git panel#51601
git_ui: Add starts_open setting to git panel#51601SomeoneToIgnore merged 2 commits intozed-industries:mainfrom
Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @mvanhorn on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
|
We require contributors to sign our Contributor License Agreement, and we don't have @mvanhorn on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
SomeoneToIgnore
left a comment
There was a problem hiding this comment.
Before merging this needs a rebase and a change in all-settings.md , otherwise looks good.
Fixes zed-industries#51542 Adds a `git_panel.starts_open` setting (default: false) for parity with project_panel. When set to true, the git panel opens automatically in new workspaces.
1ba6473 to
ef020c9
Compare
|
Rebased onto main and added |
SomeoneToIgnore
left a comment
There was a problem hiding this comment.
Oh, there's no new entry in default.json (would be good to have the comment on it, similar as all other entries have there) which causes the tests to fail.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Added |
Fixes zed-industries#51542 Adds a `git_panel.starts_open` setting for parity with `project_panel`. When set to `true`, the git panel opens automatically in new workspaces that don't have saved panel state. The default is `false`, matching current behavior (non-breaking). ### Usage ```json { "git_panel": { "starts_open": true } } ``` ### Implementation Follows the same pattern as `project_panel.starts_open`: 1. `GitPanelSettingsContent` - added `starts_open: Option<bool>` to the settings schema 2. `GitPanelSettings` - added `starts_open: bool` field 3. `GitPanel` Panel impl - overrides `starts_open()` to read from settings Release Notes: - Added `git_panel.starts_open` setting to control whether the git panel opens automatically in new workspaces (default: false) --------- Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Thanks for the merge. |
Fixes zed-industries#51542 Adds a `git_panel.starts_open` setting for parity with `project_panel`. When set to `true`, the git panel opens automatically in new workspaces that don't have saved panel state. The default is `false`, matching current behavior (non-breaking). ### Usage ```json { "git_panel": { "starts_open": true } } ``` ### Implementation Follows the same pattern as `project_panel.starts_open`: 1. `GitPanelSettingsContent` - added `starts_open: Option<bool>` to the settings schema 2. `GitPanelSettings` - added `starts_open: bool` field 3. `GitPanel` Panel impl - overrides `starts_open()` to read from settings Release Notes: - Added `git_panel.starts_open` setting to control whether the git panel opens automatically in new workspaces (default: false) --------- Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes zed-industries#51542 Adds a `git_panel.starts_open` setting for parity with `project_panel`. When set to `true`, the git panel opens automatically in new workspaces that don't have saved panel state. The default is `false`, matching current behavior (non-breaking). ### Usage ```json { "git_panel": { "starts_open": true } } ``` ### Implementation Follows the same pattern as `project_panel.starts_open`: 1. `GitPanelSettingsContent` - added `starts_open: Option<bool>` to the settings schema 2. `GitPanelSettings` - added `starts_open: bool` field 3. `GitPanel` Panel impl - overrides `starts_open()` to read from settings Release Notes: - Added `git_panel.starts_open` setting to control whether the git panel opens automatically in new workspaces (default: false) --------- Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes zed-industries#51542 Adds a `git_panel.starts_open` setting for parity with `project_panel`. When set to `true`, the git panel opens automatically in new workspaces that don't have saved panel state. The default is `false`, matching current behavior (non-breaking). ### Usage ```json { "git_panel": { "starts_open": true } } ``` ### Implementation Follows the same pattern as `project_panel.starts_open`: 1. `GitPanelSettingsContent` - added `starts_open: Option<bool>` to the settings schema 2. `GitPanelSettings` - added `starts_open: bool` field 3. `GitPanel` Panel impl - overrides `starts_open()` to read from settings Release Notes: - Added `git_panel.starts_open` setting to control whether the git panel opens automatically in new workspaces (default: false) --------- Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes #51542
Adds a
git_panel.starts_opensetting for parity withproject_panel. When set totrue, the git panel opens automatically in new workspaces that don't have saved panel state.The default is
false, matching current behavior (non-breaking).Usage
{ "git_panel": { "starts_open": true } }Implementation
Follows the same pattern as
project_panel.starts_open:GitPanelSettingsContent- addedstarts_open: Option<bool>to the settings schemaGitPanelSettings- addedstarts_open: boolfieldGitPanelPanel impl - overridesstarts_open()to read from settingsRelease Notes:
git_panel.starts_opensetting to control whether the git panel opens automatically in new workspaces (default: false)