0

I’m using Sublime Text with the LSP and LSP Rust Analyzer packages. I would like to disable Rust Analyzer’s Code Lens. I’ve already done this in settings:

// Settings in here override those in "LSP-rust-analyzer/LSP-rust-analyzer.sublime-settings"

{
    "settings": {
        "rust-analyzer.lens.enable": false,
    }
}

And it works for the most part. It disables the “implementations” and “run | debug” features of Code Lens, but it does not remove the “quick fix” or “implement default members” items. Here are a few pictures of what I'm trying to remove (the blue text on the right): enter image description here enter image description here

Keep in mind these code actions only appear when my mouse has been clicked and my cursor is inside of these blocks. How may I disable all of Code Lens for Rust Analyzer on Sublime Text?

Thicc Theo
  • 65
  • 5
  • 1
    I'm not familiar with how Sublime shows it, but "quick fix" and/or "implement default members" would be an [assist / code action](https://rust-analyzer.github.io/manual.html#assists-code-actions). It could be controlled by `rust-analyzer.hover.actions.enable`. – kmdreko May 15 '23 at 17:17
  • @kmdreko I disabled that setting and I still get the code lens text. I'll edit my post and include a few pictures. – Thicc Theo May 16 '23 at 04:20

0 Answers0