haskell / haskell/haskell-language-server

`hls vscode-extension-schema` generates a wrong config type

Open
#2,423 0 comments 0 reactions 0 assignees View on GitHub
component: cli type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
4d 3h
Merged PRs (30d)
12

Description

The command outputs for wingaman hole severity option:

```
"haskell.plugin.tactics.config.hole_severity": {
"type": "string",
"scope": "resource",
"enumDescriptions": [
"error",
"warning",
"info",
"hint",
"none"
],
"default": null,
"description": "The severity to use when showing hole diagnostics. These
are noisy, but some editors don't allow jumping to all severities.",
"enum": [
1,
2,
3,
4,
null
]
},
```

but its type should be `integer` instead `string`, as we can check in the enum values. It produced abug in the vscode extension fixed when we changed the type to integer

//cc @berberman @isovector

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.