Releases: xarunoba/zed-windows
Zed for Windows (Nightly) 2025.01.17
project_panel: Fix crash when adding a new file or directory to the first folded directory (#23217)
Closes #23216
This crash happens in the update_visible_entries
function, where we
calculate ancestors
and current_ancestor_depth
. ancestors
is map
storing information about folded ancestors and current_ancestor_depth
is basically selected ancestor index in reverse order of visibility.
For example, before adding a new file or directory in a/b/c
, the
ancestors
might look like:
{
"entry_id_of_c": {
"current_ancestor_depth": 2, // "a" is selected
"ancestors": ["entry_id_of_a", "entry_id_of_b", "entry_id_of_c"]
}
}
When new file or directory is added toa
, ancestors length is reduced,
as a
now is not part of folded dir due to having multiple children.
But depth still remains the same as while calculating it, we use depth
from old_ancestors
to preserve selection across renders. This causes
panic.
{
"entry_id_of_c": {
"current_ancestor_depth": 2, // wrong: use of old depth here causes panic
"ancestors": ["entry_id_of_b", "entry_id_of_c"] // correct: notice "a" is missing, as "a" now has multiple children
}
}
This PR fixes it by capping depth so it don't exceed ancestors
array.
This preserves existing depth as well as handles our edge case.
Release Notes:
- Fixed crash when adding a new file or directory to the first folded
directory
See Zed release note for more information.
Zed for Windows (Nightly) 2025.01.16
Represent git statuses more faithfully (#23082)
First, parse the output of git status --porcelain=v1
into a
representation that can handle the full "grammar" and doesn't lose
information.
Second, as part of pushing this throughout the codebase, expand the use
of the existing GitSummary
type to all the places where status
propagation is in play (i.e., anywhere we're dealing with a mix of files
and directories), and get rid of the previous GitSummary -> GitFileStatus
conversion.
- Synchronize new representation over collab
- Update zed.proto
- Update DB models
- Update
GitSummary
and summarization for the newFileStatus
- Fix all tests
- worktree
- collab
- Clean up
FILE_*
constants - New collab tests to exercise syncing of complex statuses
- Run it locally and make sure it looks good
Release Notes:
- N/A
Co-authored-by: Mikayla mikayla@zed.dev
Co-authored-by: Conrad conrad@zed.dev
See Zed release note for more information.
Zed for Windows (Nightly) 2025.01.15
Revert "linux: Fix saving file with root ownership (#22045)" (#23162)
Release Notes:
- (temporarily) Removes the linux "save file as root" feature while we
figure out bugs.
Updates zed-industries/zed#22045
See Zed release note for more information.
Zed for Windows (Nightly) 2025.01.14
vim: Add Subword Textobject (#22387)
Closes #22761
Vim: subword text object?
#22280
Release Notes:
- Added Vim SubWord TextObject
Co-authored-by: Conrad Irwin conrad.irwin@gmail.com
See Zed release note for more information.
Zed for Windows (Nightly) 2025.01.13
Clarify logic for Autoscroll::newest()
and Autoscroll::fit()
(#23048)
Release Notes:
- N/A
See Zed release note for more information.
Zed for Windows (Nightly) 2025.01.12
Fix a completions panic when no fuzzy matches + inline completion (#23019)
My mistake in #22977, in the case where the inline completion was not
selected it set the index to 1 assuming there would be following match
entries.
See Zed release note for more information.
Zed for Windows (Nightly) 2025.01.11
Fix jank in LSP debug log autoscroll (#22998)
Not sure why scroll was janky with Autoscroll::newest()
, but this
appears to fix it. Probably better to conditionally do the autoscroll
requests anyway.
Release Notes:
- N/A
See Zed release note for more information.
Zed for Windows (Nightly) 2025.01.10
assistant2: More improvement to prompt building efficiency (#22941)
Release Notes:
- N/A
See Zed release note for more information.
Zed for Windows (Nightly) 2025.01.09
Make completion menu entries mutable (#22880)
Release Notes:
- N/A
See Zed release note for more information.
Zed for Windows (Nightly) 2025.01.08
Fix panic in request_multiple_lsp_locally (#22806)
Release Notes:
- Fix a panic after disconnecting from a remote project
See Zed release note for more information.