mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-02 13:30:26 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user