File tree 6 files changed +12
-8
lines changed 6 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ source-repository-package
12
12
location : https://github.com/fendor/hie-bios.git
13
13
tag : 89d28817716a1c8df7e191f3a43c4504bc6379eb
14
14
15
+ source-repository-package
16
+ type : git
17
+ location : https://github.com/mpickering/shake
18
+ tag : 4d56fe9f09bd3bd63ead541c571c756995da490a
15
19
16
20
tests : true
17
21
documentation : false
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ main = do
224
224
225
225
putStrLn " \n Step 4/6: Type checking the files"
226
226
setFilesOfInterest ide $ HashSet. fromList $ map toNormalizedFilePath' files
227
- _ <- runActionSync ide $ uses TypeCheck (map toNormalizedFilePath' files)
227
+ _ <- runActionSync " TypecheckTest " ide $ uses TypeCheck (map toNormalizedFilePath' files)
228
228
-- results <- runActionSync ide $ use TypeCheck $ toNormalizedFilePath' "src/Development/IDE/Core/Rules.hs"
229
229
-- results <- runActionSync ide $ use TypeCheck $ toNormalizedFilePath' "exe/Main.hs"
230
230
return ()
@@ -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 ideState $ runMaybeT $ useE TypeCheck filePath
128
+ _ <- runAction (fromNormalizedFilePath filePath) 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 ide $ getResults filePath pos
193
+ runAction path ide $ getResults filePath pos
194
194
195
195
-- ---------------------------------------------------------------------
196
196
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) " Example2.codeLens entered (ideLogger)" -- AZ
126
126
case uriToFilePath' uri of
127
127
Just (toNormalizedFilePath -> filePath) -> do
128
- _ <- runAction ideState $ runMaybeT $ useE TypeCheck filePath
128
+ _ <- runAction (fromNormalizedFilePath filePath) ideState $ runMaybeT $ useE TypeCheck filePath
129
129
_diag <- getDiagnostics ideState
130
130
_hDiag <- getHiddenDiagnostics ideState
131
131
let
@@ -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 ide $ getResults filePath pos
190
+ runAction path 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 ideState $ getFileContents fp
67
+ (_, mb_contents) <- runAction (fromNormalizedFilePath fp) 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 ideState $ getParsedModule fp
62
+ m_parsed <- runAction (fromNormalizedFilePath fp) 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