-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
internal: Remove lens.forceCustomCommands config #17675
internal: Remove lens.forceCustomCommands config #17675
Conversation
3c53f11
to
45608bb
Compare
Thanks! @bors r+ |
…nfig, r=lnicola Remove lens.forceCustomCommands config Closes #17643 A very simple PR that removes the lens.forceCustomCommands config feature without side effects.
@bors r- |
☀️ Try build successful - checks-actions |
crates/rust-analyzer/src/config.rs
Outdated
@@ -2032,7 +2029,7 @@ impl Config { | |||
|
|||
pub fn client_commands(&self) -> ClientCommandsConfig { | |||
let commands = self.commands(); | |||
let force = commands.is_none() && *self.lens_forceCustomCommands(); | |||
let force = commands.is_none(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unrelated to this PR and not a big deal, but I think we call client_commands
four times per hover action, and it does a bunch of allocations, so we might want to cache it.
45608bb
to
49184a1
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Closes #17643
A very simple PR that removes the lens.forceCustomCommands config feature without side effects.