Skip to content

Conversation

@PaulDotSH
Copy link
Contributor

Closes #17643
A very simple PR that removes the lens.forceCustomCommands config feature without side effects.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 22, 2024
@PaulDotSH PaulDotSH marked this pull request as draft July 22, 2024 19:45
@PaulDotSH PaulDotSH force-pushed the remove-lens-force-custom-commands-config branch 2 times, most recently from 3c53f11 to 45608bb Compare July 22, 2024 19:53
@PaulDotSH PaulDotSH marked this pull request as ready for review July 22, 2024 20:07
@lnicola
Copy link
Member

lnicola commented Jul 23, 2024

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Jul 23, 2024

📌 Commit 45608bb has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jul 23, 2024

⌛ Testing commit 45608bb with merge 61df441...

bors added a commit that referenced this pull request Jul 23, 2024
…nfig, r=lnicola

Remove lens.forceCustomCommands config

Closes #17643
A very simple PR that removes the lens.forceCustomCommands config feature without side effects.
@lnicola
Copy link
Member

lnicola commented Jul 23, 2024

@bors r-

@bors
Copy link
Contributor

bors commented Jul 23, 2024

☀️ Try build successful - checks-actions
Build commit: 61df441 (61df4412bcc49c1c241bbf30f022a11134bb51c8)

pub fn client_commands(&self) -> ClientCommandsConfig {
let commands = self.commands();
let force = commands.is_none() && *self.lens_forceCustomCommands();
let force = commands.is_none();
Copy link
Member

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.

@PaulDotSH PaulDotSH force-pushed the remove-lens-force-custom-commands-config branch from 45608bb to 49184a1 Compare July 23, 2024 07:28
@lnicola
Copy link
Member

lnicola commented Jul 23, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Jul 23, 2024

📌 Commit 49184a1 has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jul 23, 2024

⌛ Testing commit 49184a1 with merge b2e3cec...

@bors
Copy link
Contributor

bors commented Jul 23, 2024

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing b2e3cec to master...

@bors bors merged commit b2e3cec into rust-lang:master Jul 23, 2024
@lnicola lnicola changed the title Remove lens.forceCustomCommands config internal: Remove lens.forceCustomCommands config Jul 24, 2024
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.

Remove lens.forceCustomCommands config

6 participants