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
Copy file name to clipboardExpand all lines: README.md
+13-7
Original file line number
Diff line number
Diff line change
@@ -71,21 +71,27 @@ The environment _only will be visible for the lsp server_, not for other extensi
71
71
72
72
### Downloaded binaries
73
73
74
-
This extension will download `haskell-language-server` binaries to a specific location depending on your system.
74
+
This extension will download `haskell-language-server` binaries via an (internal) ghcup to a specific location depending
75
+
on your system, unless you set the config option `haskell.manageHLS` to `false` (the default is `true`).
75
76
76
77
It will download the newest version of haskell-language-server which has support for the required ghc.
77
78
That means it could use an older version than the latest one, without the last features and bug fixes.
78
79
For example, if a project needs ghc-8.10.4 the extension will download and use haskell-language-server-1.4.0, the lastest version which supported ghc-8.10.4. Even if the lastest global haskell language-server version is 1.5.1.
79
80
80
81
If you find yourself running out of disk space, you can try deleting old versions of language servers in this directory. The extension will redownload them, no strings attached.
| Windows |`%APPDATA%\Code\User\globalStorage\haskell.haskell\ghcup`|
87
+
| Linux |`$HOME/.config/Code/User/globalStorage/haskell.haskell/.ghcup`|
87
88
88
-
Note that if `haskell-language-server-wrapper`/`haskell-language-server` is already on the PATH or you have set the `haskell.serverExecutablePath` option, then the extension will launch it directly instead of downloading binaries, even if the version of the former is older then the latter.
89
+
If you want to manage HLS yourself, set `haskell.manageHLS` to `false` and make sure HLS is in your PATH
90
+
or set `haskell.serverExecutablePath` to a valid executable.
91
+
92
+
You can also tell HLS to use your system provided ghcup by setting `haskell.useSystemGHCup` to `true` (default is `false`).
93
+
94
+
If you need to set mirrors for ghcup download info, check the settings `haskell.metadataURL` and `haskell.releasesURL`.
0 commit comments