File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
plugins/hls-hectare-plugin Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
module Ide.Plugin.Hectare (descriptor ) where
2
2
3
+ import Data.Default
3
4
import Development.IDE.GHC.Compat
4
5
import Development.IDE.GHC.Compat.Util
5
6
import qualified ECTA.Plugin as GHC
7
+ import Ide.Plugin.Config
6
8
import Ide.Types
7
9
8
10
descriptor :: PluginId -> PluginDescriptor s
9
11
descriptor pluginId = (defaultPluginDescriptor pluginId)
10
12
{ pluginModifyDynflags = staticPlugin
13
+ -- This plugin is opt-in
14
+ , pluginConfigDescriptor = defaultConfigDescriptor {
15
+ configHasDiagnostics = True ,
16
+ configInitialGenericConfig = Just def {
17
+ plcGlobalOn = False
18
+ }
19
+ }
11
20
}
12
21
13
22
staticPlugin :: DynFlagsModifications
Original file line number Diff line number Diff line change @@ -14,13 +14,14 @@ extra-source-files:
14
14
LICENSE
15
15
16
16
library
17
- if impl(ghc > 8.9 ) && impl(ghc < 9.0 )
17
+ if impl(ghc >= 8.10 ) && impl(ghc < 9.0 )
18
18
buildable : True
19
19
else
20
20
buildable : False
21
21
exposed-modules : Ide.Plugin.Hectare
22
22
build-depends :
23
23
base >= 4.12 && < 5
24
+ , data-default
24
25
, ecta-plugin >= 0.1.1.2
25
26
, ghcide >= 1.8
26
27
, hls-graph
You can’t perform that action at this time.
0 commit comments