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
This extension adds language support for [Haskell](https://haskell.org), powered by the [Haskell Language Server](https://github.com/haskell/haskell-language-server).
5
+
This extension adds language support for [Haskell](https://haskell.org), powered by the [Haskell Language Server](https://github.com/haskell/haskell-language-server).
6
6
As almost all features are provided by the server you might find interesting read its [documentation](https://haskell-language-server.readthedocs.io).
7
7
8
8
## Features
@@ -57,6 +57,16 @@ This supposes it could be used to execute arbitrary programs adding a `.vscode/s
57
57
For this reason its scope will be changed to `machine` so users only will be able to change it globally.
58
58
See #387 for more details.
59
59
60
+
### Set additional evironment variables for the server
61
+
62
+
You can add additional evironment variables for only the lsp server using the configuration option `haskell.serverEnvironment`. For example, to change the cache directory used by the server you could set:
63
+
64
+
```json
65
+
{ "XDG_CACHE_HOME": "/path/to/my/cache" }
66
+
```
67
+
68
+
as the server uses the XDG specification for cache directories.
69
+
60
70
### Downloaded binaries
61
71
62
72
This extension will download `haskell-language-server` binaries to a specific location depending on your system. 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.
@@ -67,7 +77,7 @@ This extension will download `haskell-language-server` binaries to a specific lo
67
77
| Windows |`%APPDATA%\Code\User\globalStorage\haskell.haskell`|
68
78
| Linux |`$HOME/.config/Code/User/globalStorage/haskell.haskell`|
69
79
70
-
Note that if `haskell-language-server-wrapper`/`haskell-language-server` is already on the PATH, then the extension will launch it directly instead of downloading binaries.
80
+
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.
71
81
72
82
### Supported GHC versions
73
83
@@ -83,7 +93,7 @@ These are the versions of GHC that there are binaries of `haskell-language-serve
83
93
| 8.8.3 | ✓ | ✓ ||
84
94
| 8.6.5 | ✓ | ✓ | ✓ |
85
95
86
-
The exact list of binaries can be checked in the last release of haskell-language-server: <https://github.com/haskell/haskell-language-server/releases/latest>
96
+
The exact list of binaries can be checked in the last release of haskell-language-server: <https://github.com/haskell/haskell-language-server/releases/latest>
87
97
You can check the current GHC versions support status and the policy followed for deprecations [here](https://haskell-language-server.readthedocs.io/en/latest/supported-versions.html).
0 commit comments