Skip to content

Commit c095bba

Browse files
committed
Disabled by default
1 parent afd4659 commit c095bba

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

plugins/hls-hectare-plugin/Ide/Plugin/Hectare.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
module Ide.Plugin.Hectare (descriptor) where
22

3+
import Data.Default
34
import Development.IDE.GHC.Compat
45
import Development.IDE.GHC.Compat.Util
56
import qualified ECTA.Plugin as GHC
7+
import Ide.Plugin.Config
68
import Ide.Types
79

810
descriptor :: PluginId -> PluginDescriptor s
911
descriptor pluginId = (defaultPluginDescriptor pluginId)
1012
{ pluginModifyDynflags = staticPlugin
13+
-- This plugin is opt-in
14+
, pluginConfigDescriptor = defaultConfigDescriptor {
15+
configHasDiagnostics = True,
16+
configInitialGenericConfig = Just def {
17+
plcGlobalOn = False
18+
}
19+
}
1120
}
1221

1322
staticPlugin :: DynFlagsModifications

plugins/hls-hectare-plugin/hls-hectare-plugin.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ extra-source-files:
1414
LICENSE
1515

1616
library
17-
if impl(ghc > 8.9) && impl(ghc < 9.0)
17+
if impl(ghc >= 8.10) && impl(ghc < 9.0)
1818
buildable: True
1919
else
2020
buildable: False
2121
exposed-modules: Ide.Plugin.Hectare
2222
build-depends:
2323
base >=4.12 && <5
24+
, data-default
2425
, ecta-plugin >=0.1.1.2
2526
, ghcide >=1.8
2627
, hls-graph

0 commit comments

Comments
 (0)