Ionide-vim icon indicating copy to clipboard operation
Ionide-vim copied to clipboard

Cannot disable reference code lens (FSAC)

Open markusbrammer opened this issue 4 months ago • 3 comments

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: https://github.com/ionide/Ionide-vim/blob/8435bae84b26b602dbb68399661b3989915cc4d3/autoload/fsharp.vim#L178 I am also using lspconfig.

To Reproduce NA, see expected behaviour

Expected behaviour I would expect to behave like disabling other FSAC settings:

vim.g['fsharp#unused_declarations_analyzer'] = 0 -- Works
vim.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. image

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.

markusbrammer avatar Feb 15 '24 12:02 markusbrammer