Skip to content

Commit 9a92d79

Browse files
committed
Warning -> Error
1 parent a4e87cb commit 9a92d79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ghcide/src/Development/IDE/Plugin/HLS.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ responseErrorToLogMessage err = errorCode <> ":" <+> errorBody
6060
errorCode = pretty $ show $ err ^. LSP.code
6161
errorBody = pretty $ err ^. LSP.message
6262

63+
-- various error message specific builders
6364
pluginNotEnabled :: SMethod m -> Text
6465
pluginNotEnabled method = "No plugin enabled for " <> T.pack (show method)
6566

@@ -80,7 +81,7 @@ failedToParseArgs (CommandId com) (PluginId pid) err arg = "Error while parsing
8081
logAndReturnError :: Recorder (WithPriority Log) -> ErrorCode -> Text -> LSP.LspT Config IO (Either ResponseError a)
8182
logAndReturnError recorder errCode msg = do
8283
let err = ResponseError errCode msg Nothing
83-
logWith recorder Warning $ LogPluginError err
84+
logWith recorder Error $ LogPluginError err
8485
pure $ Left err
8586

8687
-- | Map a set of plugins to the underlying ghcide engine.

plugins/hls-alternate-number-format-plugin/src/Ide/Plugin/AlternateNumberFormat.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ codeActionHandler state plId (CodeActionParams _ _ docId currRange _) = pluginRe
9797
literalPairs = map (\lit -> (lit, alternateFormat lit)) litsInRange
9898
-- make a code action for every literal and its' alternates (then flatten the result)
9999
actions = concatMap (\(lit, alts) -> map (mkCodeAction nfp lit enabledExtensions pragma) alts) literalPairs
100-
101100
pure $ List actions
102101
where
103102
inCurrentRange :: Literal -> Bool

0 commit comments

Comments
 (0)