zed/crates
狐狸 c83adb3dbf
project: Fix SymbolKind serialization over RPC (#62458)
# Objective

I noticed that in workspace symbol search, the function's symbol kind
has become `Trait`.


## Solution

Add `to_proto` and a macro to define the mapping instead of `as i32`.

## Testing

Updated the test.

## 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:

- Fixed `SymbolKind` mapping to LSP protocol values
2026-08-11 09:31:37 +00:00
..
acp_thread git: Add diff_base setting for showing changes since the default branch (#61501) 2026-07-31 19:57:13 +00:00
acp_tools acp: Update agent client protocol crate to 0.15.0 (#59593) 2026-06-22 09:04:29 +00:00
action_log git: Add diff_base setting for showing changes since the default branch (#61501) 2026-07-31 19:57:13 +00:00
activity_indicator a11y: Landmarks and menu improvements (#60397) 2026-07-13 16:37:28 +00:00
agent Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
agent_servers acp: Validate and surface more elicitation warnings (#61708) 2026-07-27 11:30:39 +00:00
agent_settings agent: Re-enable sandbox (#61711) 2026-07-29 13:03:22 +00:00
agent_skills settings_ui: Move skills management into settings UI (#58701) 2026-06-08 14:57:47 +00:00
agent_ui Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
ai_onboarding deps: Bump pathfinder_simd & fix upcoming rustc warnings (#62170) 2026-08-07 10:16:57 +00:00
anthropic Skip [DONE] stream terminator in anthropic and google_ai SSE parsers (#61627) 2026-07-27 12:07:31 +00:00
askpass git: Only prompt for GPG passphrase when gpg-agent cannot supply it (#61265) 2026-07-20 16:14:26 +00:00
assets
audio Remove experimental microphone gain normalization option (#58677) 2026-06-05 16:49:42 +00:00
auto_update auto_update: Fix installer temp dirs leaking on macOS (#60528) 2026-07-07 10:23:28 +00:00
auto_update_helper
auto_update_ui Typed workspace errors (#57649) 2026-06-07 16:55:18 +00:00
aws_http_client
bedrock Fix Bedrock effort and regional routing (#61597) 2026-07-27 15:59:19 +00:00
benchmarks perf: Add initial benchmark for markdown element (#59524) 2026-06-18 02:47:10 +00:00
breadcrumbs gpui: Allow chaining flex_grow() and flex_shrink() with custom factors (#58142) 2026-06-01 04:40:13 +00:00
buffer_diff git: Add diff_base setting for showing changes since the default branch (#61501) 2026-07-31 19:57:13 +00:00
call Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
channel client: Add username to User and start using it (#60107) 2026-06-29 20:21:46 +00:00
cli git: Add possibility to open specific line in a diff using the CLI (#45499) 2026-07-18 19:56:01 +00:00
client Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
clock
cloud_api_client cloud_api_client: Implement Wasm support (#61328) 2026-07-21 13:20:31 +00:00
cloud_api_types extensions_ui: Move logic to render extension card details into ExtensionCard component (#61850) 2026-07-30 14:55:00 +00:00
cloud_llm_client Classify edit prediction lifecycle triggers (#60983) 2026-07-15 13:14:36 +00:00
codestral Split interpolate failure rejection reason (#60499) 2026-07-06 22:12:33 +00:00
collab project: Fix SymbolKind serialization over RPC (#62458) 2026-08-11 09:31:37 +00:00
collab_ui Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
collections Use no-op hasher for TypeId hashing (#58629) 2026-06-05 10:32:57 +00:00
command_palette deps: Bump pathfinder_simd & fix upcoming rustc warnings (#62170) 2026-08-07 10:16:57 +00:00
command_palette_hooks Use no-op hasher for TypeId hashing (#58629) 2026-06-05 10:32:57 +00:00
component component_preview: Clean up Component trait (#57731) 2026-05-29 07:06:57 +00:00
component_preview component_preview: Fix example rendering no text or icons (#59241) 2026-06-15 03:26:51 +00:00
context_server Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
copilot copilot_chat: Cleanup after removing OAuth via LSP (#62198) 2026-08-05 11:17:54 +00:00
copilot_chat copilot_chat: Remove dependency on zed_credentials_provider (#62208) 2026-08-05 13:42:28 +00:00
copilot_ui copilot: Use separate authentication paths for edit prediction and chat (#60535) 2026-07-30 10:34:16 +00:00
crashes crashes: Capture glibc's abort diagnostic in crash reports (#60624) 2026-07-14 21:47:47 +00:00
credentials_provider
csv_preview csv_preview: Refine filter popover UI (#61138) 2026-07-26 10:27:23 +00:00
dap Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
dap_adapters
db
debug_adapter_extension
debugger_tools
debugger_ui Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
deepseek language_models: Support custom HTTP headers for provider requests (#55246) 2026-06-02 13:29:23 +00:00
dev_container Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
diagnostics a11y: Landmarks and menu improvements (#60397) 2026-07-13 16:37:28 +00:00
docs_preprocessor Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
edit_prediction edit_prediction: Prevent v4 cursor marker leaks (#61957) 2026-07-31 09:53:28 +00:00
edit_prediction_cli Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
edit_prediction_context Split out RelPath into a separate crate (#61029) 2026-07-15 08:33:25 +00:00
edit_prediction_metrics buffer_diff: Canonicalize ambiguous hunk placement to fix staging corruption (#60584) 2026-07-18 18:48:49 +00:00
edit_prediction_types Classify edit prediction lifecycle triggers (#60983) 2026-07-15 13:14:36 +00:00
edit_prediction_ui deps: Bump pathfinder_simd & fix upcoming rustc warnings (#62170) 2026-08-07 10:16:57 +00:00
editor editor: Honor lsp_results_location in the cmd-click references fallback (#61187) 2026-08-09 13:58:30 +00:00
editor_benchmarks text: Preserve structural sharing when rebuilding the fragment tree (#58681) 2026-06-05 19:24:28 +00:00
encoding_selector a11y: Landmarks and menu improvements (#60397) 2026-07-13 16:37:28 +00:00
env_var
etw_tracing
eval_cli Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
eval_utils
explorer_command_injector
extension language: Refactor available_languages into its own struct (#61388) 2026-07-23 11:22:43 +00:00
extension_api extension_api: Expose hard_tabs in LanguageSettings (#52560) 2026-07-10 11:51:16 +00:00
extension_cli Thin out unnecessary dependencies from core crates (#60977) 2026-07-14 15:02:41 +00:00
extension_host language: Refactor available_languages into its own struct (#61388) 2026-07-23 11:22:43 +00:00
extensions_ui extensions_ui: Suggest windows-batch extension for Batch files (#62363) 2026-08-08 17:20:49 +00:00
feature_flags Remove project panel undo and redo feature flag (#62124) 2026-08-04 15:35:05 +00:00
feature_flags_macros
feedback
file_finder Speed up cargo build -p zed compilation (#62059) 2026-08-01 19:42:37 +00:00
file_icons
fs Add optional message support to git stash (#62439) 2026-08-11 04:38:21 +00:00
fs_benchmarks
fuzzy fuzzy: Remove util dependency (#61933) 2026-07-30 13:24:19 +00:00
fuzzy_nucleo fuzzy_nucleo: Remove util dependency (#61929) 2026-07-30 12:59:16 +00:00
git Add optional message support to git stash (#62439) 2026-08-11 04:38:21 +00:00
git_hosting_providers Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
git_ui Add optional message support to git stash (#62439) 2026-08-11 04:38:21 +00:00
git_ui_core deps: Bump pathfinder_simd & fix upcoming rustc warnings (#62170) 2026-08-07 10:16:57 +00:00
go_to_line Don't cancel renames or dismiss Go to Line when the window is deactivated (#61852) 2026-07-29 12:49:46 +00:00
google_ai Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
gpui gpui: Add per-window frame-duration and present-interval histograms (#61871) 2026-08-10 17:37:27 +00:00
gpui_linux Prevent inactive windows from updating the IME position on linux/Wayland (#62086) 2026-08-05 07:30:17 +00:00
gpui_macos Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
gpui_macros Unify Render and RenderOnce into View (#58087) 2026-07-08 15:52:48 +00:00
gpui_platform gpui: Webgl backend (#62165) 2026-08-04 15:53:09 +00:00
gpui_shared_string
gpui_tokio Remove gpui's dependency on async-process (#59358) 2026-06-16 13:47:55 +00:00
gpui_util Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
gpui_web Gpui web dont repaint (#62327) 2026-08-07 18:51:36 +00:00
gpui_wgpu wgpu: Only store embedded fonts once in memory (#62192) 2026-08-06 15:02:42 +00:00
gpui_windows Tweak renderer resource management (#62069) 2026-08-03 14:37:21 +00:00
grammars python: Add dunder variables highlighting (#58158) 2026-08-06 15:29:26 +00:00
html_to_markdown
http_client acp: Validate registry agent checksums (#61334) 2026-07-20 13:21:18 +00:00
http_client_tls
http_proxy agent: Sandbox DNS rebinding and redirect cleanup (#60941) 2026-07-14 15:29:30 +00:00
icons Add dedicated icon for the GPT Subscription provider (#62009) 2026-07-31 15:06:40 +00:00
image_viewer git: Add diff_base setting for showing changes since the default branch (#61501) 2026-07-31 19:57:13 +00:00
input_latency_ui gpui: Add per-window frame-duration and present-interval histograms (#61871) 2026-08-10 17:37:27 +00:00
inspector_ui multi_buffer: Don't eagerly clone BufferSnapshot in range_to_buffer_ranges (#59190) 2026-06-12 12:27:28 +00:00
install_cli install_cli: Show notification instead of failing CLI install (#59575) 2026-06-22 18:20:57 +00:00
journal
json_schema_store Update bundled JSON schemas (2026-04-29) (#58948) 2026-06-25 17:30:12 +00:00
keymap_editor deps: Bump pathfinder_simd & fix upcoming rustc warnings (#62170) 2026-08-07 10:16:57 +00:00
language Fix the syntax layer panic (#62366) 2026-08-10 16:58:49 +00:00
language_core project: Fix SymbolKind serialization over RPC (#62458) 2026-08-11 09:31:37 +00:00
language_extension language: Refactor available_languages into its own struct (#61388) 2026-07-23 11:22:43 +00:00
language_model Add explicit OpenAI conversation compaction and fix Anthropic compaction (#61370) 2026-07-24 16:53:45 +00:00
language_model_core Add explicit OpenAI conversation compaction and fix Anthropic compaction (#61370) 2026-07-24 16:53:45 +00:00
language_models open_ai: Recommend GPT-5.6 Sol (#62417) 2026-08-10 09:16:24 +00:00
language_models_cloud Add explicit OpenAI conversation compaction and fix Anthropic compaction (#61370) 2026-07-24 16:53:45 +00:00
language_onboarding
language_selector language: Refactor available_languages into its own struct (#61388) 2026-07-23 11:22:43 +00:00
language_tools deps: Bump pathfinder_simd & fix upcoming rustc warnings (#62170) 2026-08-07 10:16:57 +00:00
languages Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
line_ending_selector a11y: Landmarks and menu improvements (#60397) 2026-07-13 16:37:28 +00:00
livekit_api livekit_api: Fix LiveKit token revocation timestamps (#60157) 2026-07-03 09:50:42 +00:00
livekit_client Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
llama_cpp Add llama.cpp as a language model provider (#59964) 2026-06-29 13:24:33 +00:00
lmstudio lmstudio: Fix context wheel by including token usage in streaming responses (#57861) 2026-07-10 15:32:21 +00:00
lsp Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
lsp_locations editor: Honor lsp_results_location in the cmd-click references fallback (#61187) 2026-08-09 13:58:30 +00:00
markdown markdown: Support triple-tilde Mermaid fences (#62257) 2026-08-10 13:04:37 +00:00
markdown_preview Respect scrollbar.show setting in Markdown preview (#60410) 2026-08-07 13:22:09 +00:00
media zed: Unify dependencies (#61381) 2026-07-21 07:58:16 +00:00
menu
mermaid_render markdown: Bump merman version (#62236) 2026-08-05 20:11:33 +00:00
migrator Thin out unnecessary dependencies from core crates (#60977) 2026-07-14 15:02:41 +00:00
miniprofiler_ui Log worst hanging tasks and actions (#57835) 2026-06-02 12:03:05 +00:00
mistral Add reasoning effort support for Mistral models (#61393) 2026-07-21 14:51:27 +00:00
multi_buffer vim: Fix insert above auto-indentation (#52594) 2026-08-04 11:45:33 +00:00
net
node_runtime Stop the npm cache from growing without bound (#61750) 2026-07-29 15:16:39 +00:00
notifications component_preview: Clean up Component trait (#57731) 2026-05-29 07:06:57 +00:00
oauth_callback_server
ollama ollama: Don't abort entire model fetch if one model's details fail to load (#59606) 2026-06-23 09:21:31 +00:00
onboarding deps: Bump pathfinder_simd & fix upcoming rustc warnings (#62170) 2026-08-07 10:16:57 +00:00
open_ai open_ai: Preserve separators between reasoning summaries (#62466) 2026-08-11 09:06:52 +00:00
open_path_prompt Speed up cargo build -p zed compilation (#62059) 2026-08-01 19:42:37 +00:00
open_router open_router: Add prompt caching for Anthropic models (#57498) 2026-06-23 23:01:58 +00:00
openai_subscribed open_ai: Implement server-side compaction for subscription (#62313) 2026-08-07 10:37:14 +00:00
opencode opencode: Model updates (GPT 5.6 + Grok 4.5) (#60852) 2026-07-13 12:13:49 +00:00
outline outline: Add preview pane to buffer symbols (#61069) 2026-07-17 11:41:08 +00:00
outline_panel Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
panel
path path: Normalize Windows paths independently of the host platform (#61374) 2026-07-31 06:41:53 +00:00
paths Split out RelPath into a separate crate (#61029) 2026-07-15 08:33:25 +00:00
picker text_finder: Highlight the query as a regex when the regex filter is on (#61128) 2026-08-08 14:03:54 +00:00
picker_preview pickers: Remove picker::ToMultiBuffer action we did not land (#60979) 2026-07-14 17:18:23 +00:00
platform_title_bar gpui: Add resizable and minimizable state to Window (#61473) 2026-07-31 06:38:08 +00:00
prettier Allow Prettier to read the .editorconfig files of the project when formatting from within Zed (#59149) 2026-06-13 05:21:05 +00:00
project project: Fix SymbolKind serialization over RPC (#62458) 2026-08-11 09:31:37 +00:00
project_benchmarks Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
project_panel project_panel: Confirm before trashing unsaved file on undo (#62294) 2026-08-10 11:48:29 +00:00
project_symbols language: Refactor available_languages into its own struct (#61388) 2026-07-23 11:22:43 +00:00
prompt_store agent: Warn about long skill descriptions (#58356) 2026-06-05 19:46:05 +00:00
proto Add optional message support to git stash (#62439) 2026-08-11 04:38:21 +00:00
proxy_handshake client: Extract proxy handshakes into a new proxy_handshake crate (#61427) 2026-07-23 22:46:06 +00:00
recent_projects deps: Bump pathfinder_simd & fix upcoming rustc warnings (#62170) 2026-08-07 10:16:57 +00:00
refineable
release_channel release_channel: Allow compile time overrides that don't use include_str! (#61731) 2026-07-27 18:20:35 +00:00
remote Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
remote_connection deps: Bump pathfinder_simd & fix upcoming rustc warnings (#62170) 2026-08-07 10:16:57 +00:00
remote_server Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
repl Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
reqwest_client reqwest_client: Allow configuring a per-read idle timeout (#61753) 2026-07-28 03:16:10 +00:00
rope Bump ctor (#57728) 2026-05-27 10:31:53 +00:00
rpc project_panel: Add remote support for undo/redo system (#59709) 2026-07-16 09:41:21 +00:00
sandbox agent: Fix NTFS warning breaking terminal tool when WSL not available (#62049) 2026-08-03 11:53:30 +00:00
scheduler gpui: Add an abstraction for scheduling foreground work for idle periods, and implement it for the web (#61827) 2026-07-29 06:41:29 +00:00
schema_generator theme: Specify color format and pattern in schema (#49136) 2026-07-29 20:59:24 +00:00
search text_finder: Highlight the query as a regex when the regex filter is on (#61128) 2026-08-08 14:03:54 +00:00
session project: Create LSP file watcher on the background (#60530) 2026-07-07 11:48:14 +00:00
settings Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
settings_content Add starts_open setting to terminal panel (#54373) 2026-08-08 18:30:33 +00:00
settings_json Show error toast on startup for malformed tasks (#62387) 2026-08-10 16:42:30 +00:00
settings_macros
settings_profile_selector picker: Simplify presentation and sizing APIs, add preview-aware defaults (#59719) 2026-06-23 09:33:47 +00:00
settings_ui Add starts_open setting to terminal panel (#54373) 2026-08-08 18:30:33 +00:00
shell_command_parser
sidebar Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
snippet snippet: Preserve escaped characters in non-default choice options (#61313) 2026-07-20 11:17:43 +00:00
snippet_provider
snippets_ui snippets: Strip path separators from language snippet file names (#61421) 2026-07-23 04:49:39 +00:00
sqlez
sqlez_macros Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
streaming_diff Speed up StreamingDiff::push_new part two (#57849) 2026-05-27 19:33:04 +00:00
sum_tree Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
svg_preview Fix preview button acting on the focused editor instead of its own pane (#61218) 2026-07-20 04:08:28 +00:00
syntax_theme
system_specs
tab_switcher git: Add diff_base setting for showing changes since the default branch (#61501) 2026-07-31 19:57:13 +00:00
task Fix unexpected argument ' ' upon trying to debug while cargo is indexing (#61241) 2026-07-28 11:51:44 +00:00
tasks_ui language: Refactor available_languages into its own struct (#61388) 2026-07-23 11:22:43 +00:00
telemetry
telemetry_events
terminal Revert "terminal: Actually close process groups when the terminal is closed (#61467)" (#62399) 2026-08-10 07:59:18 +00:00
terminal_view Add starts_open setting to terminal panel (#54373) 2026-08-08 18:30:33 +00:00
text Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
theme editor: Add intelligent bracket colorization (#51580) 2026-07-01 17:36:23 +00:00
theme_extension
theme_importer theme: Specify color format and pattern in schema (#49136) 2026-07-29 20:59:24 +00:00
theme_selector picker: Simplify presentation and sizing APIs, add preview-aware defaults (#59719) 2026-06-23 09:33:47 +00:00
theme_settings theme: Specify color format and pattern in schema (#49136) 2026-07-29 20:59:24 +00:00
time_format time_format: Show compound "N years, M months ago" for blame entries (#57973) 2026-05-28 19:43:30 +00:00
title_bar Speed up cargo build -p zed compilation (#62059) 2026-08-01 19:42:37 +00:00
toolchain_selector Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
ui gpui: Add synced repeating animations and phase-lock spinners (#62332) 2026-08-07 21:14:36 +00:00
ui_input settings_ui: Remove feature flag for AI settings and adjust design (#59860) 2026-07-01 04:25:40 +00:00
ui_macros component_preview: Clean up Component trait (#57731) 2026-05-29 07:06:57 +00:00
ui_prompt Fix error prompt darkened background exceeding window boundaries on Linux (#57608) 2026-06-08 14:59:39 +00:00
util util: Fix stdin redirect for ShellBuilder (#62078) 2026-08-05 08:16:06 +00:00
util_macros
vim Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
vim_mode_setting
watch Bump ctor (#57728) 2026-05-27 10:31:53 +00:00
web_search
web_search_providers cloud_api_client: Always pass up an organization ID when creating an LLM token (#58872) 2026-06-09 12:06:49 +00:00
which_key
windows_resources
workspace Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
worktree Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
worktree_benchmarks
x_ai x_ai: Add support for specifying reasoning effort (#58078) 2026-05-29 16:28:27 +00:00
zed gpui: Add per-window frame-duration and present-interval histograms (#61871) 2026-08-10 17:37:27 +00:00
zed_actions Speed up cargo build -p zed compilation (#62059) 2026-08-01 19:42:37 +00:00
zed_credentials_provider
zed_env_vars
zeta_prompt Bump rustc to 1.97 (#62395) 2026-08-09 22:29:52 +00:00
zlog Suppress pet log spam when opening Python projects (#60204) 2026-07-01 15:18:54 +00:00
zlog_settings
ztracing Relicense Zed source code under GPL (#57948) 2026-05-28 20:19:17 +00:00
ztracing_macro Relicense Zed source code under GPL (#57948) 2026-05-28 20:19:17 +00:00