Skip to content

Commit 1eb9a6a

Browse files
committed
Add Session Loading style to list of known configs
1 parent 5769ee2 commit 1eb9a6a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,22 @@
210210
"default": true,
211211
"description": "Whether to typecheck the entire project on load. It could drive to bad performance in large projects."
212212
},
213+
"haskell.sessionLoading": {
214+
"scope": "resource",
215+
"type": "string",
216+
"enum": [
217+
"Single Component",
218+
"Multiple Components",
219+
"Auto"
220+
],
221+
"default": "Auto",
222+
"description": "Specify the project loading strategy of the Language Server. It allows the build tool (such as `cabal` or `stack`) to [load multiple components at once](https://github.com/haskell/cabal/pull/8726). While this can lead to an improved IDE experience, it is an experimental feature. Only change to \"Single Component\" when you encounter issues with `cabal`.",
223+
"enumDescriptions": [
224+
"Always load only a single component at a time. This is the most reliable option if you encountered any issues with the other options.",
225+
"Allow the build tool to setup a multiple component session, if the build tool supports it. At the moment, only `cabal` supports loading with multiple components. If the `cabal` version does not support load multiple components at once, HLS falls gracefully back to \"Single Component\" mode",
226+
"Let HLS decide how to load your project. For build tools that support it, HLS will use \"Multiple Components\" and otherwise \"Single Component\". Starting from the `cabal` version `3.12`, `cabal` supports loading of multiple components at once."
227+
]
228+
},
213229
"haskell.maxCompletions": {
214230
"scope": "resource",
215231
"default": 40,

0 commit comments

Comments
 (0)