5702737
Start work on an integration test for following
Max Brunsfeld
created
845457e
Always read project entry id from workspace::Item
Click to expand commit body
We cannot store a workspace item's project entry id separately,
since buffers' entry ids can change (for example when doing
a *save as*).
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Keith Simmons <keith@the-simmons.net>
Nathan Sobo
,
Max Brunsfeld
, and
Keith Simmons
created
0036e5c
Replace ProjectEntry struct with ProjectEntryId
Click to expand commit body
Previously, we tracked the worktree_id and entry_id separately, but now that entry ids are unique across all worktrees this is unnecessary.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Keith Simmons <keith@the-simmons.net>
Nathan Sobo
,
Max Brunsfeld
, and
Keith Simmons
created
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Keith Simmons <keith@zed.dev>
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
Max Brunsfeld
,
Nathan Sobo
,
Keith Simmons
, and
Antonio Scandurra
created
e8efaed
Merge pull request #633 from zed-industries/refresh-windows-panic
Click to expand commit body
Fix edge cases when calling `refresh_windows`
Antonio Scandurra
created
b0afb64
Fix edge cases when calling `refresh_windows`
Click to expand commit body
This commit ensures that new views are rendered for the first time. This fixes
a panic that could be reproduced by dropping the `ThemeSelector` and opening
the file finder during the same update.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
17742a9
Merge pull request #632 from zed-industries/underline-unused-warning
Click to expand commit body
Restore underline for warnings about unused code
Antonio Scandurra
created
257601b
Add buffer method for getting the symbols containing a position
Max Brunsfeld
created
76fc9c9
Restore underline for warnings about unused code
Max Brunsfeld
created
a0224cb
Merge pull request #630 from zed-industries/fix/go-to-line-panic
Click to expand commit body
Fix go to line panic by replacing an unwrap with an and_then
Antonio Scandurra
created
7218845
fix go to line panic by replacing an unwrap with an and_then
This lets us use `next` or `prev` to decide whether to park the cursor
at the first or last filtered item.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
45ce503
Start on implementing filtering support for `Cursor::prev`
Antonio Scandurra
created
7c6fe56
Merge pull request #624 from zed-industries/fix-broken-syntax-highlighting
Click to expand commit body
Make all `HighlightStyle` properties optional
Nathan Sobo
created
fbf7cdf
Make all `HighlightStyle` properties optional
Click to expand commit body
Previously, some of those properties such the font weight, style and color
would be mandatory: when the theme didn't specify them, Zed would use a default
value during deserialization. This meant that those default properties would
unconditionally override the base text style, causing a rendering bug when
combining syntax highlights with diagnostic styles.
This commit fixes that by making `HighlightStyle`s more additive: each property
can be set independently and only the properties that theme specifies get
overridden in the base text style.