File tree 2 files changed +2
-2
lines changed
ghcide/src/Development/IDE/Plugin
plugins/hls-alternate-number-format-plugin/src/Ide/Plugin 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ responseErrorToLogMessage err = errorCode <> ":" <+> errorBody
60
60
errorCode = pretty $ show $ err ^. LSP. code
61
61
errorBody = pretty $ err ^. LSP. message
62
62
63
+ -- various error message specific builders
63
64
pluginNotEnabled :: SMethod m -> Text
64
65
pluginNotEnabled method = " No plugin enabled for " <> T. pack (show method)
65
66
@@ -80,7 +81,7 @@ failedToParseArgs (CommandId com) (PluginId pid) err arg = "Error while parsing
80
81
logAndReturnError :: Recorder (WithPriority Log ) -> ErrorCode -> Text -> LSP. LspT Config IO (Either ResponseError a )
81
82
logAndReturnError recorder errCode msg = do
82
83
let err = ResponseError errCode msg Nothing
83
- logWith recorder Warning $ LogPluginError err
84
+ logWith recorder Error $ LogPluginError err
84
85
pure $ Left err
85
86
86
87
-- | Map a set of plugins to the underlying ghcide engine.
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ codeActionHandler state plId (CodeActionParams _ _ docId currRange _) = pluginRe
97
97
literalPairs = map (\ lit -> (lit, alternateFormat lit)) litsInRange
98
98
-- make a code action for every literal and its' alternates (then flatten the result)
99
99
actions = concatMap (\ (lit, alts) -> map (mkCodeAction nfp lit enabledExtensions pragma) alts) literalPairs
100
-
101
100
pure $ List actions
102
101
where
103
102
inCurrentRange :: Literal -> Bool
You can’t perform that action at this time.
0 commit comments