-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot disable reference code lens (FSAC) #77
Comments
@cannorin , I dug into this a little bit, to the extent of changing the default to this in
If you have any pointers, I can continue digging on this one. I didn't have time yet, but my next step will be checking the LSP log when starting up and changing these options. |
@greggyb It should be enough to call My concern is that CodeLens options may not work in I'm going to take a look at this issue on this weekend (since I suspect that setting the |
According to the changelog, the setting was renamed from Here's where it's accessed: https://github.com/ionide/FsAutoComplete/blob/edca0ecf0c081b80aec1a135d4fffddcf28fe449/src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs#L1539 |
Good catch! For anyone wanting to disable reference code lens, it is possible in Neovim using lspconfig. First, disable automatic FsAutoComplete setup with Ionide using: vim.g["fsharp#lsp_auto_setup"] = 0 Then, manually set up FsAutoComplete using require("ionide").setup({
capabilities = capabilities,
on_attach = on_attach,
settings = {
FSharp = {
codeLenses = {
references = {
enabled = false
}
}
}
},
}) |
Describe the bug
It doesn't seem possible to disable reference code lens for FSAutoComplete (FSAC).
The FSAC setting
FSharp.EnableReferenceCodeLens
is included in the Ionide's list of FSAC configs/settings:Ionide-vim/autoload/fsharp.vim
Line 178 in 8435bae
I am also using
lspconfig
.To Reproduce
NA, see expected behaviour
Expected behaviour
I would expect to behave like disabling other FSAC settings:
But it doesn't work, the reference counter is still there, see screenshot.
Screenshots
Want to disable the
1 References
part.Environment (please complete the following information):
Additional context
This might not be a bug if it is not implemented.
The text was updated successfully, but these errors were encountered: