gpui: Add sendable foreground execution for web HTTP clients (#66165)

## Summary

This cleans up the gpui_platform code a bit, and in combination the way
we set up the http client for the web. This does introduce a
`ForegroundExecutor` variant that it itself is Send-able, allowing to
dispatch foreground futures from background workers (by requiring the
future to be Send, unlike `ForegroundExecutor`), which is a requirement
for web fetch.

a31c7b54c60738b82524e4e4c12aec2f6caf101d fixes a bunch of warnings with
our binary names

Release Notes:

- [gpui] N/A
This commit is contained in:
Lukas Wirth
2026-10-29 09:12:10 +00:00
committed by GitHub
parent f0210f1621
commit 2c2f737ab2
52 changed files with 359 additions and 195 deletions
+3 -3
View File
@@ -77,7 +77,7 @@ You must grant Screen Recording permission to your terminal:
### Running Visual Tests
```sh
cargo run -p zed --bin zed_visual_test_runner --features visual-tests
cargo run -p zed --bin zed-visual-test-runner --features visual-tests
```
### Baseline Images
@@ -92,7 +92,7 @@ Before making any UI changes, generate baseline images from a known-good state:
```sh
git checkout origin/main
UPDATE_BASELINE=1 cargo run -p zed --bin zed_visual_test_runner --features visual-tests
UPDATE_BASELINE=1 cargo run -p zed --bin zed-visual-test-runner --features visual-tests
git checkout -
```
@@ -103,7 +103,7 @@ This creates baselines that reflect the current expected UI.
When UI changes are intentional, update the baseline images after your changes:
```sh
UPDATE_BASELINE=1 cargo run -p zed --bin zed_visual_test_runner --features visual-tests
UPDATE_BASELINE=1 cargo run -p zed --bin zed-visual-test-runner --features visual-tests
```
> **Note:** In the future, baselines may be stored externally. For now, they