zed/crates
Marshall Bowers 6ef32374d6
Add command_palette_hooks crate (#8398)
This PR introduces a new `command_palette_hooks` crate that contains the
types used to hook into the behavior of the command palette.

The `CommandPaletteFilter` was previously extracted to the `copilot`
crate in #7095, solely because that was the earliest ancestor of the
crates that depended on it.

The `CommandPaletteInterceptor` was still defined in `command_palette`
itself.

Both of these types were consumed by other crates wanting to influence
the behavior of the command palette, but required taking a dependency on
the entire `command_palette` crate in order to gain access to these
hooks.

By moving them out into their own crate, we can improve the compile
order and make crates like `vim` able to begin building sooner without
having to wait for `command_palette` to finish compiling.

Here's a comparison of the compilation graph before and after (ignore
the timings):

#### Before

<img width="332" alt="Screenshot 2024-02-25 at 12 42 29 PM"
src="https://github.com/zed-industries/zed/assets/1486634/a57c662e-fbc2-41ab-9e30-cca17afa6c73">

#### After

<img width="362" alt="Screenshot 2024-02-25 at 12 51 15 PM"
src="https://github.com/zed-industries/zed/assets/1486634/c1a6d29c-b607-4604-8f1b-e5d318bf8849">

Release Notes:

- N/A
2024-02-25 13:21:20 -05:00
..
activity_indicator chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
ai Allow OpenAI API URL to be configured via assistant.openai_api_url (#7552) 2024-02-12 11:37:27 -05:00
assets chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
assistant Add telemetry events backend for collab (#8220) 2024-02-23 11:13:28 -05:00
audio chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
auto_update Rename ZedHttpClient for clarity (#8320) 2024-02-24 00:07:24 -05:00
breadcrumbs chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
call Clean up dependencies of call,lsp,project,settings,vim,welcome, and workspace (#8330) 2024-02-25 00:41:28 +02:00
channel Add SystemClock (#8239) 2024-02-22 22:28:08 -05:00
cli Respect user preferences when formatting timestamp (#7994) 2024-02-23 19:18:06 -07:00
client Rename ZedHttpClient for clarity (#8320) 2024-02-24 00:07:24 -05:00
clock Add SystemClock (#8239) 2024-02-22 22:28:08 -05:00
collab Fix uploads to edit_events table (#8318) 2024-02-23 20:58:45 -05:00
collab_ui Allow using context in the placeholder_text method 2024-02-25 00:08:57 +02:00
collections gpui: Add Global marker trait (#7095) 2024-01-30 14:08:20 -05:00
color chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
command_palette Add command_palette_hooks crate (#8398) 2024-02-25 13:21:20 -05:00
command_palette_hooks Add command_palette_hooks crate (#8398) 2024-02-25 13:21:20 -05:00
copilot Add command_palette_hooks crate (#8398) 2024-02-25 13:21:20 -05:00
copilot_ui Add cancel button on GitHub Copilot actions (#7850) 2024-02-16 10:45:55 -05:00
db chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
diagnostics chore: Extract languages from zed crate (#8270) 2024-02-23 15:56:08 +01:00
editor Allow using context in the placeholder_text method 2024-02-25 00:08:57 +02:00
extension Revert "Bump tree-sitter, wasmtime (#8306)" (#8373) 2024-02-25 10:35:19 +02:00
extensions_ui Rework extension filtering to use a ToggleButton (#8387) 2024-02-25 10:17:50 -05:00
feature_flags chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
feedback Rename ZedHttpClient for clarity (#8320) 2024-02-24 00:07:24 -05:00
file_finder Clean up deps for file_finder, language_selector, task, rpc, storybook (#8353) 2024-02-25 10:10:07 +02:00
fs Introduce file_id on Windows (#8130) 2024-02-22 11:22:12 -08:00
fsevent Translate notify::Event to fsevent::Event on linux (#7545) 2024-02-08 08:35:37 -08:00
fuzzy chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
git chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
go_to_line chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
gpui recent projects: fix list flashing/empty (#8376) 2024-02-25 17:22:01 +02:00
gpui_macros Switch LSP prompts to use a non-blocking toast (#8312) 2024-02-23 15:18:32 -08:00
install_cli Add initial CI job for Windows target (#8088) 2024-02-21 00:35:29 +02:00
journal Hoist languages crate's dependencies to the workspace level (#8394) 2024-02-25 12:02:59 -05:00
language Add new argument vim text object (#7791) 2024-02-23 19:37:13 -07:00
language_selector Clean up deps for file_finder, language_selector, task, rpc, storybook (#8353) 2024-02-25 10:10:07 +02:00
language_tools Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00
languages Hoist languages crate's dependencies to the workspace level (#8394) 2024-02-25 12:02:59 -05:00
live_kit_client Respect user preferences when formatting timestamp (#7994) 2024-02-23 19:18:06 -07:00
live_kit_server Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
lsp Clean up dependencies of call,lsp,project,settings,vim,welcome, and workspace (#8330) 2024-02-25 00:41:28 +02:00
markdown_preview Add action to open release notes locally (#8173) 2024-02-22 02:20:06 -05:00
media Respect user preferences when formatting timestamp (#7994) 2024-02-23 19:18:06 -07:00
menu chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
multi_buffer Add new argument vim text object (#7791) 2024-02-23 19:37:13 -07:00
node_runtime Hoist languages crate's dependencies to the workspace level (#8394) 2024-02-25 12:02:59 -05:00
notifications chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
outline Allow using context in the placeholder_text method 2024-02-25 00:08:57 +02:00
picker Allow using context in the placeholder_text method 2024-02-25 00:08:57 +02:00
prettier Detect and possibly use user-installed gopls / zls language servers (#8188) 2024-02-23 13:39:14 +01:00
project Clean up dependencies of call,lsp,project,settings,vim,welcome, and workspace (#8330) 2024-02-25 00:41:28 +02:00
project_panel Use collections::{HashMap, HashSet} instead of its std:: counterpart (#7502) 2024-02-07 19:06:03 +02:00
project_symbols Allow using context in the placeholder_text method 2024-02-25 00:08:57 +02:00
quick_action_bar Hide Inline Assist button if assistant.button is disabled (#7932) 2024-02-18 08:14:08 +02:00
recent_projects Show keybindings instead of the action names in the recent project modal 2024-02-25 00:08:57 +02:00
refineable Sort dependencies in Cargo.toml files (#7126) 2024-01-30 21:41:29 -05:00
release_channel chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
rich_text chat: auto detect links (#8028) 2024-02-19 21:49:47 -07:00
rope Add documentation to many core editor types (#7919) 2024-02-17 09:03:05 -07:00
rpc Clean up deps for file_finder, language_selector, task, rpc, storybook (#8353) 2024-02-25 10:10:07 +02:00
search Allow using context in the placeholder_text method 2024-02-25 00:08:57 +02:00
semantic_index Allow OpenAI API URL to be configured via assistant.openai_api_url (#7552) 2024-02-12 11:37:27 -05:00
settings Clean up dependencies of call,lsp,project,settings,vim,welcome, and workspace (#8330) 2024-02-25 00:41:28 +02:00
snippet Clean up Cargo.toml files (#7044) 2024-01-29 23:47:20 -05:00
sqlez Use collections::{HashMap, HashSet} instead of its std:: counterpart (#7502) 2024-02-07 19:06:03 +02:00
sqlez_macros chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
story chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00
storybook Clean up deps for file_finder, language_selector, task, rpc, storybook (#8353) 2024-02-25 10:10:07 +02:00
sum_tree Add documentation to many core editor types (#7919) 2024-02-17 09:03:05 -07:00
task Clean up deps for file_finder, language_selector, task, rpc, storybook (#8353) 2024-02-25 10:10:07 +02:00
tasks_ui Allow using context in the placeholder_text method 2024-02-25 00:08:57 +02:00
telemetry_events Add telemetry events backend for collab (#8220) 2024-02-23 11:13:28 -05:00
terminal Hoist languages crate's dependencies to the workspace level (#8394) 2024-02-25 12:02:59 -05:00
terminal_view Hoist languages crate's dependencies to the workspace level (#8394) 2024-02-25 12:02:59 -05:00
text Add documentation to many core editor types (#7919) 2024-02-17 09:03:05 -07:00
theme Rename scrollbar_thumb to be consistent with other style properties (#8004) 2024-02-20 11:26:09 -05:00
theme_importer theme_importer: Add --output flag for outputting the theme to a file (#7486) 2024-02-07 16:23:36 -05:00
theme_selector Allow using context in the placeholder_text method 2024-02-25 00:08:57 +02:00
time_format Fix unused warning in time_format 2024-02-24 00:04:00 -08:00
ui Switch LSP prompts to use a non-blocking toast (#8312) 2024-02-23 15:18:32 -08:00
util Rename ZedHttpClient for clarity (#8320) 2024-02-24 00:07:24 -05:00
vcs_menu Allow using context in the placeholder_text method 2024-02-25 00:08:57 +02:00
vim Add command_palette_hooks crate (#8398) 2024-02-25 13:21:20 -05:00
welcome Clean up dependencies of call,lsp,project,settings,vim,welcome, and workspace (#8330) 2024-02-25 00:41:28 +02:00
workspace Clean up dependencies of call,lsp,project,settings,vim,welcome, and workspace (#8330) 2024-02-25 00:41:28 +02:00
zed Hoist languages crate's dependencies to the workspace level (#8394) 2024-02-25 12:02:59 -05:00
zed_actions chore: Move workspace dependencies to workspace.dependencies (#7454) 2024-02-06 20:41:36 +01:00