Skip to content

feat: Provide an option to not show derives near the ADT for "Goto Implementations" or "Implementations" codelens#20186

Merged
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
ChayimFriedman2:goto-impl-no-derive
Oct 28, 2025
Merged

feat: Provide an option to not show derives near the ADT for "Goto Implementations" or "Implementations" codelens#20186
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
ChayimFriedman2:goto-impl-no-derive

Conversation

@ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Jul 6, 2025

I don't do it by default, for three reasons: (1) it's more expensive, (2) I actually quite like seeing the derives, and they may expand to no impl/more than one impl, (3) if #19130 will ever be merged this will become even more useful.

Even a config might be too much, but it was fun and easy to code so I did that. CC @rust-lang/rust-analyzer - feel free to close this PR if you think otherwise.

Closes #20016.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 6, 2025
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@ChayimFriedman2
Copy link
Contributor Author

@rust-lang/rust-analyzer do we want this?

@ShoyuVanilla
Copy link
Member

@rust-lang/rust-analyzer do we want this?

Yeah, at least I'm willing to use this feature, as it's quite irritating for me when I have to move the cursor from those derive impls with extra keystrokes in a search result window 😄

@Veykril
Copy link
Member

Veykril commented Oct 27, 2025

Sounds fine to me as well as long as the default for this remains false

…tations" or "Implementations" codelens

I don't do it by default, for three reasons: (1) it's more expensive, (2) I actually quite like seeing the derives, and they may expand to no impl/more than one impl, (3) if rust-lang#19130 will ever be merged this will become even more useful.

Even a config might be too much, but it was fun and easy to code so I did that.
@rustbot
Copy link
Collaborator

rustbot commented Oct 28, 2025

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

@ChayimFriedman2
Copy link
Contributor Author

Let's merge this then!

@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Oct 28, 2025
Merged via the queue into rust-lang:master with commit 33a6f33 Oct 28, 2025
16 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the goto-impl-no-derive branch October 28, 2025 06:52
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"42 implementations" CodeLens shouldn't count derived traits as implementations

4 participants