Skip to content

Cannot disable reference code lens (FSAC) #77

@markusbrammer

Description

@markusbrammer

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:

\ {'key': 'EnableReferenceCodeLens', 'default': 1},

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions