Skip to content

Commit f8fdd47

Browse files
committed
Update README.md
1 parent 0063622 commit f8fdd47

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![vsmarketplacebadge](https://vsmarketplacebadge.apphb.com/version/haskell.haskell.svg)](https://marketplace.visualstudio.com/items?itemName=haskell.haskell)
44

5-
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).
66
As almost all features are provided by the server you might find interesting read its [documentation](https://haskell-language-server.readthedocs.io).
77

88
## Features
@@ -57,6 +57,16 @@ This supposes it could be used to execute arbitrary programs adding a `.vscode/s
5757
For this reason its scope will be changed to `machine` so users only will be able to change it globally.
5858
See #387 for more details.
5959

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+
6070
### Downloaded binaries
6171

6272
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
6777
| Windows | `%APPDATA%\Code\User\globalStorage\haskell.haskell` |
6878
| Linux | `$HOME/.config/Code/User/globalStorage/haskell.haskell` |
6979

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.
7181

7282
### Supported GHC versions
7383

@@ -83,7 +93,7 @@ These are the versions of GHC that there are binaries of `haskell-language-serve
8393
| 8.8.3 ||| |
8494
| 8.6.5 ||||
8595

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>
8797
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).
8898

8999
## Using multi-root workspaces

0 commit comments

Comments
 (0)