Move buffer diff storage from BufferStore
to GitStore
(#26795)
Release Notes: - N/A --------- Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: max <max@zed.dev>
This commit is contained in:
parent
3d1ae68f83
commit
011f823f33
13 changed files with 1395 additions and 1279 deletions
|
@ -89,14 +89,15 @@ impl HeadlessProject {
|
|||
|
||||
let environment = project::ProjectEnvironment::new(&worktree_store, None, cx);
|
||||
let git_store = cx.new(|cx| {
|
||||
GitStore::local(
|
||||
let mut store = GitStore::local(
|
||||
&worktree_store,
|
||||
buffer_store.clone(),
|
||||
environment.clone(),
|
||||
fs.clone(),
|
||||
session.clone().into(),
|
||||
cx,
|
||||
)
|
||||
);
|
||||
store.shared(SSH_PROJECT_ID, session.clone().into(), cx);
|
||||
store
|
||||
});
|
||||
let prettier_store = cx.new(|cx| {
|
||||
PrettierStore::new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue