Skip to content

Commit d2d4add

Browse files
authored
Merge pull request #269 from bubba/remove-enable-config-option
Remove the haskell.enable configuration option
2 parents 9177187 + 16b0bb7 commit d2d4add

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ You can choose which language server to use from the "Haskell > Language Server
3636

3737
## Configuration options
3838

39-
### Enable/disable server
40-
41-
You can enable or disable the chosen haskell language server via configuration. This is sometimes useful at workspace level, because multi-root workspaces do not yet allow you to manage extensions at the folder level, which can be necessary.
42-
43-
```json
44-
"haskell.enable": true
45-
```
46-
4739
### Path to server executable executable
4840

4941
If your server is manually installed and not on your path, you can also manually set the path to the executable.

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,6 @@
150150
"type": "string",
151151
"default": "",
152152
"description": "Manually set a language server executable. Can be something on the $PATH or a path to an executable itself. Works with ~, ${HOME} and ${workspaceFolder}."
153-
},
154-
"haskell.enable": {
155-
"scope": "resource",
156-
"type": "boolean",
157-
"default": true,
158-
"description": "Enable/disable the language server (useful for multi-root workspaces)."
159153
}
160154
}
161155
},

src/extension.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,6 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold
139139
// Set the key to null to prevent multiple servers being launched at once
140140
clients.set(clientsKey, null);
141141

142-
// Stop right here, if Haskell is disabled in the resource/workspace folder.
143-
const enable = workspace.getConfiguration('haskell', uri).enable;
144-
if (!enable) {
145-
return;
146-
}
147-
148142
const logLevel = workspace.getConfiguration('haskell', uri).trace.server;
149143
const logFile = workspace.getConfiguration('haskell', uri).logFile;
150144

0 commit comments

Comments
 (0)