File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE OverloadedStrings #-}
2
+ module Ide.Plugin.GhcIde
3
+ (
4
+ descriptor
5
+ ) where
6
+
7
+ import Development.IDE.Types.Logger
8
+ import Ide.Types
9
+ import Development.IDE.LSP.HoverDefinition
10
+ import Development.IDE.Core.Shake
11
+
12
+ -- ---------------------------------------------------------------------
13
+
14
+ descriptor :: PluginId -> PluginDescriptor
15
+ descriptor plId = PluginDescriptor
16
+ { pluginId = plId
17
+ , pluginRules = mempty
18
+ , pluginCommands = []
19
+ , pluginCodeActionProvider = Nothing
20
+ , pluginCodeLensProvider = Nothing
21
+ , pluginDiagnosticProvider = Nothing
22
+ , pluginHoverProvider = Just hover'
23
+ , pluginSymbolsProvider = Nothing
24
+ , pluginFormattingProvider = Nothing
25
+ , pluginCompletionProvider = Nothing
26
+ }
27
+
28
+ -- ---------------------------------------------------------------------
29
+
30
+ hover' :: HoverProvider
31
+ hover' ideState params = do
32
+ logInfo (ideLogger ideState) " GhcIde.hover entered (ideLogger)" -- AZ
33
+ hover ideState params
34
+
35
+ -- ---------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments