Skip to content

Commit 8b323f7

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

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,20 @@
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+
"singleComponent",
218+
"multipleComponents"
219+
],
220+
"default": "singleComponent",
221+
"description": "Project loading preference of the Haskell 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.",
222+
"enumDescriptions": [
223+
"Always load only a single component at a time. This is the most reliable option if you encountered any issues with the other options.",
224+
"Prefer a multiple component session, if the build tool supports it. At the moment, only `cabal` supports multiple components session loading. If the `cabal` version does not support loading multiple components at once, we gracefully fall back to \"singleComponent\" mode."
225+
]
226+
},
213227
"haskell.maxCompletions": {
214228
"scope": "resource",
215229
"default": 40,

0 commit comments

Comments
 (0)