Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ descriptor recorder plId =
deleteFileOfInterest recorder ide file
restartCabalShakeSession (shakeExtras ide) vfs file "(closed)"
]
, pluginConfigDescriptor = defaultConfigDescriptor
{ configHasDiagnostics = True
}
}
where
log' = logWith recorder
Expand Down
3 changes: 2 additions & 1 deletion test/testdata/schema/ghc92/default-config.golden.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"cabal": {
"codeActionsOn": true,
"completionOn": true
"completionOn": true,
"diagnosticsOn": true
},
"callHierarchy": {
"globalOn": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.cabal.diagnosticsOn": {
"default": true,
"description": "Enables cabal diagnostics",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.callHierarchy.globalOn": {
"default": true,
"description": "Enables callHierarchy plugin",
Expand Down
3 changes: 2 additions & 1 deletion test/testdata/schema/ghc94/default-config.golden.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"cabal": {
"codeActionsOn": true,
"completionOn": true
"completionOn": true,
"diagnosticsOn": true
},
"callHierarchy": {
"globalOn": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.cabal.diagnosticsOn": {
"default": true,
"description": "Enables cabal diagnostics",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.callHierarchy.globalOn": {
"default": true,
"description": "Enables callHierarchy plugin",
Expand Down
3 changes: 2 additions & 1 deletion test/testdata/schema/ghc96/default-config.golden.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"cabal": {
"codeActionsOn": true,
"completionOn": true
"completionOn": true,
"diagnosticsOn": true
},
"callHierarchy": {
"globalOn": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.cabal.diagnosticsOn": {
"default": true,
"description": "Enables cabal diagnostics",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.callHierarchy.globalOn": {
"default": true,
"description": "Enables callHierarchy plugin",
Expand Down
3 changes: 2 additions & 1 deletion test/testdata/schema/ghc98/default-config.golden.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"cabal": {
"codeActionsOn": true,
"completionOn": true
"completionOn": true,
"diagnosticsOn": true
},
"callHierarchy": {
"globalOn": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.cabal.diagnosticsOn": {
"default": true,
"description": "Enables cabal diagnostics",
"scope": "resource",
"type": "boolean"
},
"haskell.plugin.callHierarchy.globalOn": {
"default": true,
"description": "Enables callHierarchy plugin",
Expand Down