Conservatively report fs events that occurred during initial worktree scan

Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-03-13 18:12:58 -07:00
parent 61172c8478
commit be5868e1c0
2 changed files with 49 additions and 16 deletions

View file

@ -4604,7 +4604,10 @@ impl Project {
typ: match change {
PathChange::Added => lsp::FileChangeType::CREATED,
PathChange::Removed => lsp::FileChangeType::DELETED,
PathChange::Updated => lsp::FileChangeType::CHANGED,
PathChange::Updated
| PathChange::AddedOrUpdated => {
lsp::FileChangeType::CHANGED
}
},
})
.collect(),