sublimelsp / LSP-OmniSharp

Convenience plugin to install/update OmniSharp for LSP
MIT License
20 stars 10 forks source link

Can't disable code lens references via configuration #28

Open beautifulcoder opened 1 year ago

beautifulcoder commented 1 year ago

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 commented 1 day ago

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,
    },
}