af014a2
Update Rust crate cargo_toml to v0.20.4 (#15276)
Click to expand commit body
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [cargo_toml](https://lib.rs/cargo_toml)
([source](https://gitlab.com/lib.rs/cargo_toml)) |
workspace.dependencies | patch | `0.20.2` -> `0.20.4` |
---
### Release Notes
<details>
<summary>lib.rs/cargo_toml (cargo_toml)</summary>
###
[`v0.20.4`](https://gitlab.com/lib.rs/cargo_toml/compare/v0.20.3...v0.20.4)
[Compare
Source](https://gitlab.com/lib.rs/cargo_toml/compare/v0.20.3...v0.20.4)
###
[`v0.20.3`](https://gitlab.com/lib.rs/cargo_toml/compare/v0.20.2...v0.20.3)
[Compare
Source](https://gitlab.com/lib.rs/cargo_toml/compare/v0.20.2...v0.20.3)
</details>
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate[bot]
and
renovate[bot]
created
243fb35
Auto fold directories in the project panel by default (#15273)
Kirill Bulatov
created
e830865
Return an empty measurement instead of panicking (#15269)
Click to expand commit body
Follow-up of https://github.com/zed-industries/zed/pull/15256
Returns zero size for no items to render.
Incorrect worktree state made the uniform list to have 0 items to
render, so
```Rust
let mut items = (self.render_items)(item_ix..item_ix + 1, cx);
let mut item_to_measure = items.pop().unwrap();
```
panicked as the first line returned an empty array despite a
single-element range provided.
Release Notes:
- N/A
Kirill Bulatov
created
7aa6f47
regression: Fix a panic when removing git-containing worktree from the project panel (#15256)
Click to expand commit body
Follow-up of #14989
Opening a project with git metadata and clicking "Remove from Project" will panic:

Release Notes:
- N/A
CharlesChen0823
created
18daf17
refactoring: Use helper instead of adjusting selection manually (#15262)
Click to expand commit body
I added `newest_adjusted` recently and now just bumped into the old code
that didn't use it.
Release Notes:
- N/A
745d2e4
collab: Extract contributor endpoints to their own module (#15251)
Click to expand commit body
This PR extracts the contributor endpoints to their own module for
organizational purposes.
Release Notes:
- N/A
Marshall Bowers
created
50dbab0
collab: Add `renovate[bot]` to the `GET /contributor` endpoint (#15250)
Click to expand commit body
This PR adds the `renovate[bot]` user to the `GET /contributor` endpoint
so that it passes the CLA check.
I patched this temporarily by adding a case into the `zed.dev` endpoint
the fronts this one, but I think long-term it will be better for collab
to be the source of truth.
Release Notes:
- N/A
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [indoc](https://togithub.com/dtolnay/indoc) | workspace.dependencies |
major | `1` -> `2` |
---
### Release Notes
<details>
<summary>dtolnay/indoc (indoc)</summary>
### [`v2.0.5`](https://togithub.com/dtolnay/indoc/releases/tag/2.0.5)
[Compare
Source](https://togithub.com/dtolnay/indoc/compare/2.0.4...2.0.5)
- Documentation improvements
([#​62](https://togithub.com/dtolnay/indoc/issues/62), thanks
[@​ilyagr](https://togithub.com/ilyagr))
### [`v2.0.4`](https://togithub.com/dtolnay/indoc/releases/tag/2.0.4)
[Compare
Source](https://togithub.com/dtolnay/indoc/compare/2.0.3...2.0.4)
- Fix handling of \r\n ending on first line
([#​61](https://togithub.com/dtolnay/indoc/issues/61), thanks
[@​PizzasBear](https://togithub.com/PizzasBear))
### [`v2.0.3`](https://togithub.com/dtolnay/indoc/releases/tag/2.0.3)
[Compare
Source](https://togithub.com/dtolnay/indoc/compare/2.0.2...2.0.3)
- Documentation improvements
### [`v2.0.2`](https://togithub.com/dtolnay/indoc/releases/tag/2.0.2)
[Compare
Source](https://togithub.com/dtolnay/indoc/compare/2.0.1...2.0.2)
- Add `no-alloc` category to crates.io metadata
### [`v2.0.1`](https://togithub.com/dtolnay/indoc/releases/tag/2.0.1)
[Compare
Source](https://togithub.com/dtolnay/indoc/compare/2.0.0...2.0.1)
- Set html_root_url attribute
### [`v2.0.0`](https://togithub.com/dtolnay/indoc/releases/tag/2.0.0)
[Compare
Source](https://togithub.com/dtolnay/indoc/compare/1.0.9...2.0.0)
- Change handling of final newline at zero levels of indentation
([#​55](https://togithub.com/dtolnay/indoc/issues/55))
- Add [`concatdoc!`](https://docs.rs/indoc/2/indoc/macro.concatdoc.html)
macro ([#​56](https://togithub.com/dtolnay/indoc/issues/56))
- Raise oldest supported rustc to 1.56
</details>
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [ctor](https://togithub.com/mmastrac/rust-ctor) |
workspace.dependencies | patch | `0.2.6` -> `0.2.8` |
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate[bot]
and
renovate[bot]
created
479ffbb
ui: Make `Label` respect the `ui_font_weight` setting (#15241)
Click to expand commit body
This PR makes the `Label` component respect the `ui_font_weight`
setting, by default.
An explicit font weight can still be set via the `weight` method, which
will override the `ui_font_weight` for that `Label`.
<img width="1566" alt="Screenshot 2024-07-25 at 8 55 16β―PM"
src="https://github.com/user-attachments/assets/2751e29c-c76e-4685-8564-604b3b77f603">
Release Notes:
- Updated UI labels to respect the `ui_font_weight` setting
([#15234](https://github.com/zed-industries/zed/issues/15234)).
Marshall Bowers
created
fe23504
uiua: Upgrade `zed_extension_api` to v0.0.6 (#15240)
Click to expand commit body
This PR upgrades the Uiua extension to use v0.0.6 of the
`zed_extension_api`.
Release Notes:
- N/A
Marshall Bowers
created
95d82f8
ui: Make custom rows in `ContextMenu`s use a normal cursor (#15239)
Click to expand commit body
This PR makes custom rows in `ContextMenu`s use a regular cursor instead
of a pointer.
Even though custom rows were marked as not selectable, we would still
pass a click handler to them, causing the `ListItem` to show a pointer
cursor.
Release Notes:
- N/A
Marshall Bowers
created
4000b0a
Restore linux ctrl-d functionality (#15238)
This PR adds the missing workspace lint configuration for the following
crates that were missing it:
- `google_ai`
- `open_ai`
- `tab_switcher`
Release Notes:
- N/A
Marshall Bowers
created
f2060cc
xtask: Add command for checking packages conform to certain standards (#15236)
Click to expand commit body
This PR adds a new `xtask` command for checking that packages conform to
certain standards.
Still a work-in-progress, but right now it checks:
- If `[lints] workspace = true` is set
- If packages are using non-workspace dependencies
Release Notes:
- N/A
Marshall Bowers
created
13693ff
docs: Embed video directly, copying formatting from blog (#15229)
Click to expand commit body
Quick doc fix for formatting and display.

Release Notes:
- N/A
Kyle Kelley
created
ec5886a
rust: Add static items to the outline (#15225)
Click to expand commit body
Fixes #15208
Release Notes:
- Outline panel for Rust files now includes static items.
Piotr Osiewicz
created
10c9e33
Fix more gutter close button alignment issues (#15233)
Click to expand commit body
Follow-up of https://github.com/zed-industries/zed/pull/15178
* shows proper cursor on hovering a block that's over a git hunk
* show gutter buttons better when git hunks are on the same line
* show deleted hunks' gutter buttons better when git blame info is shown
in the gutter
Release Notes:
- N/A
This PR upgrades `scrypt` to v0.11.
There were some API changes that impacted our usage just in the tests.
Supersedes #15224.
Release Notes:
- N/A
Marshall Bowers
created
cc1d3f0
docs: Update REPL docs with images, cell mode, and kernel debugging (#15226)
Click to expand commit body
Just a few doc tweaks.
Release Notes:
- N/A
Kyle Kelley
created
22118f1
Update Rust crate sha2 to v0.10.8 (#15223)
Click to expand commit body
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [sha2](https://togithub.com/RustCrypto/hashes) |
workspace.dependencies | patch | `0.10.7` -> `0.10.8` |
---
### Release Notes
<details>
<summary>RustCrypto/hashes (sha2)</summary>
###
[`v0.10.8`](https://togithub.com/RustCrypto/hashes/compare/sha2-v0.10.7...sha2-v0.10.8)
[Compare
Source](https://togithub.com/RustCrypto/hashes/compare/sha2-v0.10.7...sha2-v0.10.8)
</details>
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
f291677
Upgrade `async-tungstenite` to v0.23 (#15220)
Click to expand commit body
This PR upgrades `async-tungstenite` to v0.23.
This is so we can get the CVE fix in `tungstenite` v0.20.1.
Now that #15219 is done, upgrading to v0.23 no longer breaks
authentication with collab.
Release Notes:
- N/A
Marshall Bowers
created
9d736fe
Upgrade `async-tungstenite` to v17 and update usage accordingly (#15219)
Click to expand commit body
This PR upgrades `async-tungstenite` to v17.0.3.
We previously attempted upgrading `async-tungstenite` in #15039, but
broke authentication with collab in the process.
Upon further investigation, I determined that the root cause is due to
this change in `tungstenite` v0.17.0:
> Overhaul of the client's request generation process. Now the users are
able to pass the constructed `http::Request` "as is" to
`tungstenite-rs`, letting the library to check the correctness of the
request and specifying their own headers (including its own key if
necessary). No changes for those ones who used the client in a normal
way by connecting using a URL/URI (most common use-case).
We _were_ relying on passing an `http::Request` directly to
`tungstenite`, meaning we did not benefit from the changes to the common
path (of passing a URL/URI).
This meant thatβdue to changes in `tungstenite`βwe were now missing the
`Sec-WebSocket-Key` header that `tungstenite` would otherwise set for
us.
Since we were only passing a custom `http::Request` to set headers, our
approach has been adjusted to construct the initial WebSocket request
using `tungstenite`'s `IntoClientRequest::into_client_request` and then
modifying the request to set our additional desired headers.
Release Notes:
- N/A
Marshall Bowers
created
f3ad754
linux: Fix wrong names reported by `all_font_names` (#14865)
Click to expand commit body
The names suggested by `buffer_font_family` are reported by
`all_font_names`. Therefore, `all_font_names` should report family names
rather than postscript names.
close #14854
Release Notes:
- N/A
εΌ ε°η½
created
86456ce
chore: Fix clippy violations from Cargo.toml (#15216)
Click to expand commit body
/cc @maxdeviant
Release Notes:
- N/A
Piotr Osiewicz
created
d755d29
extension: Upgrade `wasmtime` to v21 (#15210)
Click to expand commit body
This PR upgrades the version of `wasmtime` and `wasmtime-wasi` in use to
v21.0.1.
We have to skip v20 because Tree-sitter also skipped it.
Here are the changes that had to be made:
### v19 -> v20
After upgrading the `wasmtime` packages to v20, I also had to run `cargo
update -p mach2` to pull in
[v0.4.2](https://github.com/JohnTitor/mach2/releases/tag/0.4.2) to fix
some compile errors.
There were a few minor API changes in `wasmtime-wasi` from
https://github.com/bytecodealliance/wasmtime/pull/8228 that we needed to
account for.
### v20 -> v21
Since there isn't a Tree-sitter version that depends on `wasmtime@v20`,
we're jumping straight to v21.
The published version of Tree-sitter (v0.22.6) still depends on
`wasmtime@v19`, but there was a commit
(https://github.com/tree-sitter/tree-sitter/commit/7f4a57817d58a2f134fe863674acad6bbf007228)
later that month that upgrades the `wasmtime` dependency to v21.
We're patching Tree-sitter to that commit so we can get the new
`wasmtime` version.
The main change in v21 is that imports generated by `bindgen!` are no
longer automatically trapped
(https://github.com/bytecodealliance/wasmtime/pull/8310), so we need to
add `trappable_imports: true` to our `bindgen!` calls.
Release Notes:
- N/A
Marshall Bowers
created
ab3c9f0
windows: Allow horizontal scroll with shift + scroll (#14147)
Click to expand commit body
Release Notes:
- Horizontally scroll when holding down the Shift key and using the
scroll wheel
https://github.com/zed-industries/zed/assets/95680272/e6480f9c-0f6a-4f47-b700-a3657a75716f
Nathaniel
created
201db23
windows: Fix titlebar rendering on Windows 10 (#14656)
Click to expand commit body
As we discussed in #14190, we agreed to open a new PR.
Release Notes:
- N/A
εΌ ε°η½
created
beb8fbd
windows: Remove unnecessary `Send` and `Sync` implementations (#14659)
Click to expand commit body
After a update to `windows-rs 0.57`, these two implementations are no
longer needed.
Release Notes:
- N/A
εΌ ε°η½
created
d2501e8
windows: Bump `windows-rs` version (#14719)
Click to expand commit body
Release Notes:
- N/A
εΌ ε°η½
created
82d6ad4
Make `CosmicTextSystem` Linux-only (#14728)
Click to expand commit body
Since `WindowsDispatcher` requires a minimum Windows version of Windows
10 Fall Creators Update (10.0.16299), and the `alacritty_terminal`
dependency relies on conPTY, an API introduced in the same version,
additionally, `DirectWriteTextSystem` also relies on Windows 10 Fall
Creators Update (10.0.16299), so it seems reasonable to make
`CosmicTextSystem` Linux-only. And we can use `DirectWriteTextSystem` on
the Windows platform exclusively. I hope this approach makes sense.
Release Notes:
- N/A
0686314
x11: Add keyboard layout hot plugging (#15059)
Click to expand commit body
Now it is possible to change keyboard layouts with `setxkbmap` without
having to restart zed.
Release Notes:
- x11: Support for keyboard layout hot plugging.
Fernando Tagawa
created
b7c6f3e
linux: Update `TryExec` value in desktop file (#15149)
7146087
zed: Mark restored buffers as conflicted if file changed on disk between store & restore (#15207)
Click to expand commit body
Previously, we've only marked restored buffers as dirty. This PR changes
that behavior in case the buffer has been associated with a file and
that file has changed on disk since the last time Zed stored its
contents.
Example timeline:
1. User edits file in Zed, buffer is dirty
2. User quites Zed with `cmd-q`
3. User changes file on disk: `echo foobar >> file.txt` or `git checkout
file.txt`
4. User starts Zed
5. File/buffer are now marked as having a conflict (yellow icon)
Release Notes:
- Unsaved files that are restored when Zed starts are now marked as
having a conflict if they have been changed on disk since the last time
they were stored.
Demo:
https://github.com/user-attachments/assets/6098b485-b325-49b7-b694-fd2fc60cce64
Release Notes:
- N/A
Currently Windows environments do not have a `shell_env`. This causes
the Zig extension to error when trying to call `worktree.shell_env()`
since extensions api isn't yet on `0.0.7` and thus not using wasm-host
`0.0.7` we need to only call for the shell env only on non-windows
systems. 0.0.7 and onward at the moment return a Result from
`shell_env()`. The binary path is also slightly different on windows.
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Uberlicious
and
Marshall Bowers
created
3ce864e
renovate: Group `wasmtime` updates (#15199)
Click to expand commit body
This PR updates the Renovate config to group `wasmtime` crates together
(e.g., `wasmtime` and `wasmtime-wasi`).
Release Notes:
- N/A
b8e5ddf
Update actions/checkout action to v4 (#15189)
Click to expand commit body
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://togithub.com/actions/checkout) | action |
major | `v2` -> `v4` |
---
### Release Notes
<details>
<summary>actions/checkout (actions/checkout)</summary>
###
[`v4`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v417)
[Compare Source](https://togithub.com/actions/checkout/compare/v3...v4)
- Bump the minor-npm-dependencies group across 1 directory with 4
updates by [@​dependabot](https://togithub.com/dependabot) in
[https://github.com/actions/checkout/pull/1739](https://togithub.com/actions/checkout/pull/1739)
- Bump actions/checkout from 3 to 4 by
[@​dependabot](https://togithub.com/dependabot) in
[https://github.com/actions/checkout/pull/1697](https://togithub.com/actions/checkout/pull/1697)
- Check out other refs/\* by commit by
[@​orhantoy](https://togithub.com/orhantoy) in
[https://github.com/actions/checkout/pull/1774](https://togithub.com/actions/checkout/pull/1774)
- Pin actions/checkout's own workflows to a known, good, stable version.
by [@​jww3](https://togithub.com/jww3) in
[https://github.com/actions/checkout/pull/1776](https://togithub.com/actions/checkout/pull/1776)
###
[`v3`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v360)
[Compare Source](https://togithub.com/actions/checkout/compare/v2...v3)
- [Fix: Mark test scripts with Bash'isms to be run via
Bash](https://togithub.com/actions/checkout/pull/1377)
- [Add option to fetch tags even if fetch-depth >
0](https://togithub.com/actions/checkout/pull/579)
</details>
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>