File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
ghcide/src/Development/IDE/Plugin Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ data Log
56
56
| LogInvalidCommandIdentifier
57
57
instance Pretty Log where
58
58
pretty = \ case
59
- LogPluginError pId err -> pretty ( show pId) <> " :" <+> prettyResponseError err
59
+ LogPluginError ( PluginId pId) err -> pretty pId <> " :" <+> prettyResponseError err
60
60
LogNoPluginForMethod (Some method) ->
61
61
" No plugin enabled for " <> pretty (show method)
62
62
LogInvalidCommandIdentifier -> " Invalid command identifier"
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ module HlsPlugins where
6
6
import Development.IDE.Types.Logger (Pretty (pretty ), Recorder ,
7
7
WithPriority , cmapWithPrio )
8
8
import Ide.PluginUtils (pluginDescToIdePlugins )
9
- import Ide.Types (IdePlugins , PluginId )
9
+ import Ide.Types (IdePlugins ,
10
+ PluginId (PluginId ))
10
11
11
12
-- fixed plugins
12
13
import Development.IDE (IdeState )
13
14
import qualified Development.IDE.Plugin.HLS.GhcIde as GhcIde
14
- import GHC.Exts (fromString )
15
15
16
16
-- haskell-language-server optional plugins
17
17
#if hls_qualifyImportedNames
@@ -123,7 +123,7 @@ import qualified Development.IDE.Plugin.CodeAction as Refactor
123
123
data Log = forall a . (Pretty a ) => Log PluginId a
124
124
125
125
instance Pretty Log where
126
- pretty (Log pId a) = fromString ( show pId) <> " : " <> pretty a
126
+ pretty (Log ( PluginId pId) a) = pretty pId <> " : " <> pretty a
127
127
128
128
-- ---------------------------------------------------------------------
129
129
You can’t perform that action at this time.
0 commit comments