From 8b323f7f029b337c9a70c71c6e1e35296c353d44 Mon Sep 17 00:00:00 2001 From: Fendor Date: Tue, 16 Apr 2024 19:00:14 +0200 Subject: [PATCH 1/2] Add Session Loading style to list of known configs --- package.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/package.json b/package.json index e2c91e06..4cb225e4 100644 --- a/package.json +++ b/package.json @@ -210,6 +210,20 @@ "default": true, "description": "Whether to typecheck the entire project on load. It could drive to bad performance in large projects." }, + "haskell.sessionLoading": { + "scope": "resource", + "type": "string", + "enum": [ + "singleComponent", + "multipleComponents" + ], + "default": "singleComponent", + "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.", + "enumDescriptions": [ + "Always load only a single component at a time. This is the most reliable option if you encountered any issues with the other options.", + "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." + ] + }, "haskell.maxCompletions": { "scope": "resource", "default": 40, From a00c71904f38ba8569280443f25821395f07087a Mon Sep 17 00:00:00 2001 From: fendor Date: Thu, 9 May 2024 11:39:54 +0200 Subject: [PATCH 2/2] Update package.json Co-authored-by: Michael Peyton Jones --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4cb225e4..60d18db7 100644 --- a/package.json +++ b/package.json @@ -218,7 +218,7 @@ "multipleComponents" ], "default": "singleComponent", - "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.", + "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.", "enumDescriptions": [ "Always load only a single component at a time. This is the most reliable option if you encountered any issues with the other options.", "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."