Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Run lens showing when lenses are disabled #17177

Merged
merged 1 commit into from May 3, 2024

Conversation

hermannm
Copy link
Contributor

@hermannm hermannm commented May 2, 2024

I have disabled Rust Analyzer lenses in my VSCode settings, but noticed that the Run lens still showed. This surprised me, as the docs for lens.run.enable state that it only applies when lens.enable is set. I then found that where we set LensConfig::run, we don't check lens_enable like for the other settings. We did this previously, so this seems like a regression from refactoring. This PR tries to fix that.

The documentation for `lens.run.enable` states that it only applies
when `lens.enable` is set. However, the config setting whether to show
the Run lens did not check `lens.enable`, so the Run lens would show
even though lenses were disabled.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 2, 2024
@Veykril
Copy link
Member

Veykril commented May 3, 2024

Thanks!
@bors r+

@bors
Copy link
Collaborator

bors commented May 3, 2024

📌 Commit d226527 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented May 3, 2024

⌛ Testing commit d226527 with merge c80006a...

@bors
Copy link
Collaborator

bors commented May 3, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing c80006a to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants