File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
hls-alternate-number-format-plugin/src/Ide/Plugin
hls-change-type-signature-plugin/src/Ide/Plugin
hls-class-plugin/src/Ide/Plugin/Class
hls-explicit-fixity-plugin/src/Ide/Plugin Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -143,15 +143,15 @@ isInsideRealSrcSpan :: Position -> RealSrcSpan -> Bool
143
143
p `isInsideRealSrcSpan` r = let (Range sp ep) = realSrcSpanToRange r in sp <= p && p <= ep
144
144
145
145
getFirstPragma :: MonadIO m => PluginId -> IdeState -> NormalizedFilePath -> ExceptT String m NextPragmaInfo
146
- getFirstPragma pId state nfp = handleMaybeM " Error: Could not get NextPragmaInfo" $ do
146
+ getFirstPragma pId state nfp = handleMaybeM " Could not get NextPragmaInfo" $ do
147
147
ghcSession <- liftIO $ runAction (show pId <> " .GhcSession" ) state $ useWithStale GhcSession nfp
148
148
(_, fileContents) <- liftIO $ runAction (show pId <> " .GetFileContents" ) state $ getFileContents nfp
149
149
case ghcSession of
150
150
Just (hscEnv -> hsc_dflags -> sessionDynFlags, _) -> pure $ Just $ getNextPragmaInfo sessionDynFlags fileContents
151
151
Nothing -> pure Nothing
152
152
153
153
requestLiterals :: MonadIO m => PluginId -> IdeState -> NormalizedFilePath -> ExceptT String m CollectLiteralsResult
154
- requestLiterals pId state = handleMaybeM " Error: Could not Collect Literals"
154
+ requestLiterals pId state = handleMaybeM " Could not Collect Literals"
155
155
. liftIO
156
156
. runAction (show pId <> " .CollectLiterals" ) state
157
157
. use CollectLiterals
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ codeActionHandler ideState _ CodeActionParams {_textDocument = TextDocumentIdent
45
45
pure $ List actions
46
46
47
47
getDecls :: MonadIO m => IdeState -> NormalizedFilePath -> ExceptT String m [LHsDecl GhcPs ]
48
- getDecls state = handleMaybeM " Error: Could not get Parsed Module"
48
+ getDecls state = handleMaybeM " Could not get Parsed Module"
49
49
. liftIO
50
50
. fmap (fmap (hsmodDecls . unLoc . pm_parsed_source))
51
51
. runAction (changeTypeSignatureId <> " .GetParsedModule" ) state
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ codeAction recorder state plId (CodeActionParams _ _ docId _ context) = pluginRe
190
190
. liftIO
191
191
. runAction " classplugin.findClassFromIdentifier.TypeCheck" state
192
192
$ useWithStale TypeCheck docPath
193
- handleMaybeM " Error in TcEnv"
193
+ handleMaybeM " TcEnv"
194
194
. liftIO
195
195
. fmap snd
196
196
. initTcWithGbl hscenv thisMod ghostSpan $ do
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ descriptor recorder pluginId = (defaultPluginDescriptor pluginId)
48
48
hover :: PluginMethodHandler IdeState TextDocumentHover
49
49
hover state _ (HoverParams (TextDocumentIdentifier uri) pos _) = pluginResponse $ do
50
50
nfp <- getNormalizedFilePath uri
51
- fixityTrees <- handleMaybeM " ExplicitFixity: Unable to get fixity"
51
+ fixityTrees <- handleMaybeM " Unable to get fixity"
52
52
$ liftIO
53
53
$ runAction " ExplicitFixity.GetFixity" state
54
54
$ use GetFixity nfp
You can’t perform that action at this time.
0 commit comments