You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Expected behaviour
I would expect to behave like disabling other FSAC settings:
vim.g['fsharp#unused_declarations_analyzer'] =0-- Worksvim.g['fsharp#unused_opens_analyzer'] =0-- Works vim.g['fsharp#enable_reference_code_lens'] =0-- Doesn't work
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):
OS: Linux Mint 21.3
Neovim version: v0.9.5
dotnet SDK version: 8.0.101
FSAC version: 0.70.1
Additional context
This might not be a bug if it is not implemented.
The text was updated successfully, but these errors were encountered:
@cannorin , I dug into this a little bit, to the extent of changing the default to this in autoload/fsharp.vim, trying to implement the CodeLens property, which also mentions the reference count. I also removed all properties referencing this reference code lens. I tried these variations with each change:
Change setting and :so $MYVIMRC
Change+source and restart language server
Change and close vim, then re-open.
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 :FSharpUpdateServerConfig to update the LSP server configuration, which calls workspace/didChangeConfiguration under the hood.
My concern is that CodeLens options may not work in workspace/didChangeConfiguration and have to be specified in initializationOptions (which is init_options in Neovim's LSP client). If that is the case, we would have to explicitly add it to initializationOptions as we do for AutomaticWorkspaceInit. https://github.com/ionide/Ionide-vim/blob/master/lua/ionide/init.lua#L38-L54
I'm going to take a look at this issue on this weekend (since I suspect that setting the CodeLenses option would fix this), but I really appreciate it if you can continue investigating it! Feel free to open a PR if you manage to fix it at your end before I do :)
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: