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

Option to disable code lens reference counter to reduce screen clutter #2419

Closed
llarrythellama opened this issue Feb 13, 2024 · 2 comments
Closed

Comments

@llarrythellama
Copy link

Is your feature request related to a problem? Please describe.
The blue reference count links on the right side of the screen (in annotation mode) are very distracting to me.

Describe the solution you'd like
I'd love an option to just turn them off entirely.

Describe alternatives you've considered
An additional "" option for "show_code_lens" (in addition to "annotation" and "phantom") that just turns off all code lens features would also work.

Additional context
image

@predragnikolic
Copy link
Member

predragnikolic commented Feb 13, 2024

Open the LSP-*.sublime-settings file for the LSP-* package that you use and put:

// Settings in here override those in "LSP-typescript/LSP-typescript.sublime-settings"
{
  "disabled_capabilities": {
    "codeLensProvider": true
  },
  //...
}

That will disable code lense for that LSP-* package.

You can also toggle code lense per Sublime Text window:

  • From the main ST menu select View > LSP: Show Code Lenses
  • Or run LSP: Toggle Code Lenses from the command palette

@rchl
Copy link
Member

rchl commented Feb 13, 2024

And for completeness... some servers also provide their own option to disable code lenses. (not sure which server is being used in this case)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants