Skip to content

Commit 99fbd75

Browse files
fendormichaelpj
andauthored
Add Session Loading style to list of known configs (#1077)
* Add Session Loading style to list of known configs * Update package.json Co-authored-by: Michael Peyton Jones <[email protected]> --------- Co-authored-by: Michael Peyton Jones <[email protected]>
1 parent a62fe89 commit 99fbd75

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
@@ -209,6 +209,20 @@
209209
"default": true,
210210
"description": "Whether to typecheck the entire project on load. It could drive to bad performance in large projects."
211211
},
212+
"haskell.sessionLoading": {
213+
"scope": "resource",
214+
"type": "string",
215+
"enum": [
216+
"singleComponent",
217+
"multipleComponents"
218+
],
219+
"default": "singleComponent",
220+
"description": "Preferred approach for loading package components. Setting this to 'multiple components' (EXPERIMENTAL) allows the build tool (such as `cabal` or `stack`) to [load multiple components at once](https://github.com/haskell/cabal/pull/8726), which is a significant improvement.",
221+
"enumDescriptions": [
222+
"Always load only a single component at a time. This is the most reliable option if you encountered any issues with the other options.",
223+
"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."
224+
]
225+
},
212226
"haskell.maxCompletions": {
213227
"scope": "resource",
214228
"default": 40,

0 commit comments

Comments
 (0)