Chris Biscardi and Kirill Bulatov
bf2d51bcfd
Implement inspector flag ( #62920 )
...
# Objective
Make it easy to conditionally enable the gpui inspector, with a goal of
eventually turning it on in nightly.
## Solution
The new `zed/inspector` flag (and supporting flags in other crates)
enables the relevant inspector features in `gpui`, `ui`, and
`inspector_ui` to be able to display the gpui inspector.
## Testing
- Enabling the inspector adds about 5mb to the binary, and for context
the zed binary is > 400mb at this time.
- Observationally, the inspector doesn't affect performance in a
meaningful way, but I did not run profiling.
```
# release with inspector (inspector on)
cargo run --release --features inspector
# release without inspector (inspector off)
cargo run --release
# dev build with debug assertions (inspector on)
cargo run
```
then trigger `dev::ToggleInspector`.
- linux: `ctrl-alt-i`
- windows: `shift-alt-i`
- macos: `cmd-alt-i`
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist )
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md )
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- N/A
---------
Co-authored-by: Kirill Bulatov <mail4score@gmail.com >
2026-08-20 22:09:43 +00:00
..
2026-07-31 19:57:13 +00:00
2026-08-20 10:08:48 +00:00
2026-07-31 19:57:13 +00:00
2026-08-13 17:07:06 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 12:40:18 +00:00
2026-06-08 14:57:47 +00:00
2026-08-20 11:48:31 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 03:44:43 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 14:32:19 +00:00
2026-08-19 14:32:19 +00:00
2026-08-20 10:08:48 +00:00
2026-07-27 15:59:19 +00:00
2026-08-20 10:08:48 +00:00
2026-06-01 04:40:13 +00:00
2026-08-20 10:08:48 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 16:37:31 +00:00
2026-08-09 22:29:52 +00:00
2026-08-19 14:07:46 +00:00
2026-07-30 14:55:00 +00:00
2026-08-20 17:53:44 +00:00
2026-08-20 16:42:42 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-06-05 10:32:57 +00:00
2026-08-20 10:08:48 +00:00
2026-06-05 10:32:57 +00:00
2026-05-29 07:06:57 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 16:42:42 +00:00
2026-08-05 13:42:28 +00:00
2026-07-30 10:34:16 +00:00
2026-07-14 21:47:47 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-04-24 10:29:51 +00:00
2026-05-13 23:35:10 +00:00
2026-08-20 10:08:48 +00:00
2026-08-14 09:38:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 16:42:42 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 16:42:42 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 16:42:42 +00:00
2026-06-05 19:24:28 +00:00
2026-07-13 16:37:28 +00:00
2026-04-07 12:28:19 -03:00
2026-08-09 22:29:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 16:51:32 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-04 15:35:05 +00:00
2026-04-18 06:34:19 +00:00
2026-05-04 06:30:47 +00:00
2026-08-20 11:27:03 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 11:19:14 +00:00
2026-07-30 13:24:19 +00:00
2026-07-30 12:59:16 +00:00
2026-08-18 05:36:16 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 21:10:56 +00:00
2026-08-20 10:08:48 +00:00
2026-08-17 08:28:00 +00:00
2026-08-20 10:08:48 +00:00
2026-08-14 19:53:25 +00:00
2026-08-20 15:01:09 +00:00
2026-08-19 14:46:01 +00:00
2026-07-08 15:52:48 +00:00
2026-08-04 15:53:09 +00:00
2026-08-14 09:35:59 +00:00
2026-06-16 13:47:55 +00:00
2026-08-12 18:44:06 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 22:16:44 +00:00
2026-08-11 15:16:03 +00:00
2026-07-14 15:29:30 +00:00
2026-08-14 15:58:14 +00:00
2026-08-20 10:08:48 +00:00
2026-08-14 16:33:25 +00:00
2026-08-20 22:09:43 +00:00
2026-06-22 18:20:57 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 16:42:42 +00:00
2026-08-19 16:26:14 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 17:53:44 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 17:53:44 +00:00
2026-03-25 12:07:34 -06:00
2026-07-23 11:22:43 +00:00
2026-08-20 12:47:15 +00:00
2026-08-19 17:27:34 +00:00
2026-07-13 16:37:28 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:20:14 +00:00
2026-06-29 13:24:33 +00:00
2026-07-10 15:32:21 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 11:17:57 +00:00
2026-08-19 13:07:52 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 12:40:18 +00:00
2026-06-02 12:03:05 +00:00
2026-07-21 14:51:27 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-05-14 21:03:56 +00:00
2026-06-23 09:21:31 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 03:20:44 +00:00
2026-08-19 12:16:37 +00:00
2026-08-14 22:42:27 +00:00
2026-08-17 00:54:13 +00:00
2026-08-19 11:07:38 +00:00
2026-07-17 11:41:08 +00:00
2026-08-20 10:08:48 +00:00
2026-05-12 15:52:52 +00:00
2026-08-19 12:16:37 +00:00
2026-07-15 08:33:25 +00:00
2026-08-19 21:10:56 +00:00
2026-07-14 17:18:23 +00:00
2026-08-18 07:00:34 +00:00
2026-06-13 05:21:05 +00:00
2026-08-20 12:15:06 +00:00
2026-08-18 10:02:20 +00:00
2026-08-20 11:25:47 +00:00
2026-07-23 11:22:43 +00:00
2026-06-05 19:46:05 +00:00
2026-08-18 05:36:16 +00:00
2026-07-23 22:46:06 +00:00
2026-08-20 10:08:48 +00:00
2026-07-27 18:20:35 +00:00
2026-08-18 10:02:20 +00:00
2026-08-18 10:02:20 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-07-16 09:41:21 +00:00
2026-08-03 11:53:30 +00:00
2026-08-18 16:55:09 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-07-07 11:48:14 +00:00
2026-08-18 12:40:18 +00:00
2026-08-20 16:42:42 +00:00
2026-08-10 16:42:30 +00:00
2026-06-23 09:33:47 +00:00
2026-08-20 21:30:49 +00:00
2026-05-05 16:25:56 +00:00
2026-08-18 07:00:34 +00:00
2026-07-20 11:17:43 +00:00
2026-04-29 10:27:47 +00:00
2026-07-23 04:49:39 +00:00
2026-04-24 10:29:51 +00:00
2026-08-09 22:29:52 +00:00
2026-05-27 19:33:04 +00:00
2026-08-20 10:08:48 +00:00
2026-07-20 04:08:28 +00:00
2026-03-31 08:06:37 -06:00
2026-05-04 06:30:47 +00:00
2026-07-31 19:57:13 +00:00
2026-08-19 21:10:56 +00:00
2026-08-18 07:58:21 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-19 22:17:41 +00:00
2026-08-20 10:08:48 +00:00
2026-08-12 18:14:22 +00:00
2026-08-17 00:36:13 +00:00
2026-03-27 14:41:25 +01:00
2026-07-29 20:59:24 +00:00
2026-08-20 10:08:48 +00:00
2026-08-16 11:41:17 +00:00
2026-05-28 19:43:30 +00:00
2026-08-20 10:08:48 +00:00
2026-08-09 22:29:52 +00:00
2026-08-20 22:09:43 +00:00
2026-07-01 04:25:40 +00:00
2026-05-29 07:06:57 +00:00
2026-06-08 14:59:39 +00:00
2026-08-20 10:08:48 +00:00
2026-08-18 16:59:08 +00:00
2026-03-19 12:53:26 -04:00
2026-05-27 10:31:53 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-05-01 22:33:54 +00:00
2026-08-20 11:27:03 +00:00
2026-08-20 12:29:17 +00:00
2026-05-29 16:28:27 +00:00
2026-08-20 22:09:43 +00:00
2026-08-20 10:08:48 +00:00
2026-08-20 10:08:48 +00:00
2026-04-02 17:06:57 -03:00
2026-08-09 22:29:52 +00:00
2026-07-01 15:18:54 +00:00
2026-08-20 17:56:02 +00:00
2026-05-28 20:19:17 +00:00