Skip to content

project: Fix SymbolKind serialization over RPC (#62458) (cherry-pick to preview) - #62470

Merged
zed-zippy[bot] merged 1 commit into
v1.15.xfrom
cherry-pick-v1.15.x-c83adb3d
Aug 11, 2026
Merged

project: Fix SymbolKind serialization over RPC (#62458) (cherry-pick to preview)#62470
zed-zippy[bot] merged 1 commit into
v1.15.xfrom
cherry-pick-v1.15.x-c83adb3d

Conversation

@zed-zippy

@zed-zippy zed-zippy Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Cherry-pick of #62458 to preview


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:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content adheres to Zed's UI standards
    (UX/UI
    and
    icon
    guidelines)
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • Fixed SymbolKind mapping to LSP protocol values

# 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
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Aug 11, 2026
@zed-community-bot zed-community-bot Bot added the bot Pull requests authored by a bot label Aug 11, 2026
@zed-zippy
zed-zippy Bot merged commit ac53f13 into v1.15.x Aug 11, 2026
46 checks passed
@zed-zippy
zed-zippy Bot deleted the cherry-pick-v1.15.x-c83adb3d branch August 11, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Pull requests authored by a bot cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants