git: Use a buffer for the panel's commit message (#23308)

This PR changes the `GitPanel` and `GitState` to use a
`language::Buffer` for the commit message. This is a small initial step
toward remote editing and collaboration support.

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
This commit is contained in:
Cole Miller 2025-01-21 12:58:18 -05:00 committed by GitHub
parent 64f9acf020
commit aa5fa4b7d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 149 additions and 152 deletions

View file

@ -691,7 +691,7 @@ impl Project {
)
});
let git_state = Some(cx.new_model(|cx| GitState::new(cx)));
let git_state = Some(cx.new_model(|cx| GitState::new(languages.clone(), cx)));
cx.subscribe(&lsp_store, Self::on_lsp_store_event).detach();