Skip to content

Allow a list of paths to try for the HLS binary, include haskell-language-server by default. #845

Closed
@michaelpj

Description

@michaelpj

There are two main ways you can end up with HLS installed:

  1. You install it from a bindist or similar. This typically means you end up with several HLS binaries plus the wrapper.
  2. Your install it from Hackage or similar. This is more common for Nix users since they tend to have a project-specific setup that includes a specific GHC and HLS.

The problem at the moment is that you have to pick whether the extension will try to launch haskell-language-server-wrapper or haskell-language-server. The most important effect of this is that we can't provide a default config that works for both methods 1 and 2.

Here's a proposal to fix this: make serverExectuablePath into list of strings, try those executables in priority order. Then we can make the default value ["haskell-language-server-wrapper", "haskell-language-server"], which I think would make everyone happy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions