Skip to content

Add CodeLens UI - #53016

Closed
mustakimali wants to merge 1 commit into
zed-industries:mainfrom
mustakimali:mustakim/codelens
Closed

Add CodeLens UI#53016
mustakimali wants to merge 1 commit into
zed-industries:mainfrom
mustakimali:mustakim/codelens

Conversation

@mustakimali

@mustakimali mustakimali commented Apr 2, 2026

Copy link
Copy Markdown
image

Adds code lens support that shows reference and implementation counts. Clicking a code lens item triggers the corresponding action (Find All References Or Implementation). Currently tested with Rust-analyzer only.

  • Code lens aligns to the line's indentation level
  • Disabled by default - opt in via "code_lens": { "enabled": true } in settings or the "Toggle Code Lens" command
    • This let me test with other languages and fix any bugs
  • Shows a loading toast when enabled via toggle
  • Debounce configurable via "code_lens": { "debounce": 300 }

Closes: #11565

Release Notes:

  • Added code lens support showing reference counts, implementations, and other LSP metadata above code symbols. Disabled by default - enable via "code_lens": { "enabled": true } in settings or the "Toggle Code Lens" command.

@cla-bot

cla-bot Bot commented Apr 2, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @mustakimali on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-codeowner-coordinator
zed-codeowner-coordinator Bot requested review from a team, as-cii and dinocosta and removed request for a team April 2, 2026 17:52
@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Apr 2, 2026
@maxdeviant maxdeviant changed the title feat: CodeLens UI Add CodeLens UI Apr 2, 2026
@zed-industries-bot

Copy link
Copy Markdown
Contributor
Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against 45dff64

@cla-bot

cla-bot Bot commented Apr 2, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @mustakimali on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@mustakimali

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot

cla-bot Bot commented Apr 2, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @mustakimali on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot

cla-bot Bot commented Apr 2, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@mustakimali

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 2, 2026
@cla-bot

cla-bot Bot commented Apr 2, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

fix: position bug

default off

feedback

cleanup unused code

wire up debounce

test
@SomeoneToIgnore

Copy link
Copy Markdown
Contributor

Thank you, we'll need a bit more work than that and hopefully #48923 will get reopened and worked on later.

@mustakimali

Copy link
Copy Markdown
Author

Thank you, we'll need a bit more work than that and hopefully #48923 will get reopened and worked on later.

@SomeoneToIgnore is this feature already in the roadmap? if yes then when do you aim to release it?
This is the only missing feature that is preventing me from using zed on larger projects. Would be nice if we could implement it soon.

@mustakimali

Copy link
Copy Markdown
Author

Anyone looking for this - it's landed #54100 (Thanks to @SomeoneToIgnore)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LSP textDocument/codeLens: CodeLens with count of reference/implementations

4 participants