Skip to content

F##

Server#

For more information about the LSP server, check fsautocomplete.

Installation#

This Server supports automatic install. Install this language server with M-xlsp-install-serverRETfsacRET.

Automatic by lsp-mode

Debugger: Yes (netcoredbg)#

Available configurations#

lsp-fsharp-auto-workspace-init#

Type: bool

Default: nil

Enable automatic workspace initialization. Do note that this can cause unexpected or challenging behaviors, as solutions with test projects are not autoloaded by FSharpAutoComplete.


lsp-fsharp-enable-reference-code-lens#

Type: bool

Default: t

Enables reference count code lenses. It is recommended to disable if --backgorund-service-enabled is not used.


lsp-fsharp-external-autocomplete#

Type: bool

Default: nil

Provides autocompletion for symbols from not opened namespaces/modules; inserts open on accept.


lsp-fsharp-interface-stub-generation#

Type: bool

Default: t

Enables code action to generate an interface stub.


lsp-fsharp-interface-stub-generation-method-body#

Type: string

Default: failwith "Not Implemented"

Defines dummy body used by interface stub generator.


lsp-fsharp-interface-stub-generation-object-identifier#

Type: string

Default: this

Defines object identifier used by interface stub generator, e.g. this or self.


lsp-fsharp-keywords-autocomplete#

Type: bool

Default: t

Provides keywords in autocomplete list.


lsp-fsharp-linter#

Type: bool

Default: t

Enables FSharpLint integration, provides additional warnings and code action fixes.


lsp-fsharp-record-stub-generation#

Type: bool

Default: t

Enables code action to generate record stub.


lsp-fsharp-record-stub-generation-body#

Type: string

Default: failwith "Not Implemented"

Defines dummy body used by record stub generator.


lsp-fsharp-resolve-namespaces#

Type: bool

Default: t

Enables resolve namespace quick fix; adds open if symbol is from not yet opened module/namespace.


lsp-fsharp-server-args#

Type: (repeat string)

Default: nil

Extra arguments for the F# language server.


lsp-fsharp-server-install-dir#

Type: directory

Default: ~/.emacs.d/.cache/lsp/fsautocomplete/

Install directory for fsautocomplete server. The slash is expected at the end.


lsp-fsharp-server-runtime#

Type: (choice (const :tag Use .Net Core net-core) (const :tag Use Mono mono) (const :tag Use .Net Framework net-framework))

Default: net-core

The .NET runtime to use.


lsp-fsharp-simplify-name-analyzer#

Type: bool

Default: nil

Enables simplify name analyzer and remove redundant qualifier quick fix.


lsp-fsharp-union-case-stub-generation#

Type: bool

Default: t

Enables a code action to generate pattern matching cases.


lsp-fsharp-union-case-stub-generation-body#

Type: string

Default: failwith "Not Implemented"

Defines dummy body used by pattern matching generator.


lsp-fsharp-unused-declarations-analyzer#

Type: bool

Default: t

Enables unused symbol detection.


lsp-fsharp-unused-opens-analyzer#

Type: bool

Default: t

Enables unused open detection.



Last update: October 13, 2021