File tree 5 files changed +6
-6
lines changed
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ memoIO op = do
523
523
Just res -> return (mp, res)
524
524
525
525
setOptions :: GhcMonad m => ComponentOptions -> DynFlags -> m (DynFlags , [Target ])
526
- setOptions (ComponentOptions theOpts _compRoot _) dflags = do
526
+ setOptions (ComponentOptions theOpts compRoot _) dflags = do
527
527
cacheDir <- liftIO $ getCacheDir theOpts
528
528
(dflags_, targets) <- addCmdOpts theOpts dflags
529
529
let dflags' = makeDynFlagsAbsolute compRoot dflags_
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ codeLens _lf ideState plId CodeLensParams{_textDocument=TextDocumentIdentifier u
125
125
logInfo (ideLogger ideState) " Example.codeLens entered (ideLogger)" -- AZ
126
126
case uriToFilePath' uri of
127
127
Just (toNormalizedFilePath -> filePath) -> do
128
- _ <- runAction (fromNormalizedFilePath filePath) ideState $ runMaybeT $ useE TypeCheck filePath
128
+ _ <- runAction " Example.codeLens " ideState $ runMaybeT $ useE TypeCheck filePath
129
129
_diag <- getDiagnostics ideState
130
130
_hDiag <- getHiddenDiagnostics ideState
131
131
let
@@ -190,7 +190,7 @@ logAndRunRequest label getResults ide pos path = do
190
190
logInfo (ideLogger ide) $
191
191
label <> " request at position " <> T. pack (showPosition pos) <>
192
192
" in file: " <> T. pack path
193
- runAction path ide $ getResults filePath pos
193
+ runAction " Example " ide $ getResults filePath pos
194
194
195
195
-- ---------------------------------------------------------------------
196
196
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ logAndRunRequest label getResults ide pos path = do
187
187
logInfo (ideLogger ide) $
188
188
label <> " request at position " <> T. pack (showPosition pos) <>
189
189
" in file: " <> T. pack path
190
- runAction path ide $ getResults filePath pos
190
+ runAction " Example2 " ide $ getResults filePath pos
191
191
192
192
-- ---------------------------------------------------------------------
193
193
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ doFormatting lf providers ideState ft uri params = do
64
64
Just provider ->
65
65
case uriToFilePath uri of
66
66
Just (toNormalizedFilePath -> fp) -> do
67
- (_, mb_contents) <- runAction (fromNormalizedFilePath fp) ideState $ getFileContents fp
67
+ (_, mb_contents) <- runAction " Formatter " ideState $ getFileContents fp
68
68
case mb_contents of
69
69
Just contents -> do
70
70
logDebug (ideLogger ideState) $ T. pack $
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ provider _lf ideState typ contents fp _ = do
59
59
in
60
60
return $ map DynOption $ pp <> pm <> ex
61
61
62
- m_parsed <- runAction (fromNormalizedFilePath fp) ideState $ getParsedModule fp
62
+ m_parsed <- runAction " Ormolu " ideState $ getParsedModule fp
63
63
fileOpts <- case m_parsed of
64
64
Nothing -> return []
65
65
Just pm -> fromDyn pm
You can’t perform that action at this time.
0 commit comments