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

Can't disable code lens references via configuration #28

Open
beautifulcoder opened this issue Jun 29, 2023 · 1 comment
Open

Can't disable code lens references via configuration #28

beautifulcoder opened this issue Jun 29, 2023 · 1 comment

Comments

@beautifulcoder
Copy link

Hi,

When I set this configuration:

// Settings in here override those in "LSP-OmniSharp/LSP-OmniSharp.sublime-settings"
{
  "settings": {
    "csharp.referencesCodeLens.enabled": false,
  }
}

The viewed file with Omnisharp still shows the number of references.

image

I have tried to disable this feature via the omnisharp.json file to no avail. The troubleshoot tool tells me this setting is actually being picked up correctly. Is there anything else I should be looking at?

@deathaxe
Copy link
Contributor

Settings beginning with "csharp" are not supported by this package (removed by #43).

Instead single language-server features can be disabled by "disabled_capabilities" dictionary in LSP-OmniSharp.sublime-settings.

{
    "disabled_capabilities": {
        "codeLensProvider": true,
    },
}

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

No branches or pull requests

2 participants