File tree Expand file tree Collapse file tree 6 files changed +12
-8
lines changed Expand file tree Collapse file tree 6 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ source-repository-package
1212 location : https://github.com/fendor/hie-bios.git
1313 tag : 89d28817716a1c8df7e191f3a43c4504bc6379eb
1414
15+ source-repository-package
16+ type : git
17+ location : https://github.com/mpickering/shake
18+ tag : 4d56fe9f09bd3bd63ead541c571c756995da490a
1519
1620tests : true
1721documentation : false
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ main = do
224224
225225 putStrLn " \n Step 4/6: Type checking the files"
226226 setFilesOfInterest ide $ HashSet. fromList $ map toNormalizedFilePath' files
227- _ <- runActionSync ide $ uses TypeCheck (map toNormalizedFilePath' files)
227+ _ <- runActionSync " TypecheckTest " ide $ uses TypeCheck (map toNormalizedFilePath' files)
228228-- results <- runActionSync ide $ use TypeCheck $ toNormalizedFilePath' "src/Development/IDE/Core/Rules.hs"
229229-- results <- runActionSync ide $ use TypeCheck $ toNormalizedFilePath' "exe/Main.hs"
230230 return ()
@@ -523,7 +523,7 @@ memoIO op = do
523523 Just res -> return (mp, res)
524524
525525setOptions :: GhcMonad m => ComponentOptions -> DynFlags -> m (DynFlags , [Target ])
526- setOptions (ComponentOptions theOpts compRoot _) dflags = do
526+ setOptions (ComponentOptions theOpts _compRoot _) dflags = do
527527 cacheDir <- liftIO $ getCacheDir theOpts
528528 (dflags_, targets) <- addCmdOpts theOpts dflags
529529 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
125125 logInfo (ideLogger ideState) " Example.codeLens entered (ideLogger)" -- AZ
126126 case uriToFilePath' uri of
127127 Just (toNormalizedFilePath -> filePath) -> do
128- _ <- runAction ideState $ runMaybeT $ useE TypeCheck filePath
128+ _ <- runAction (fromNormalizedFilePath filePath) ideState $ runMaybeT $ useE TypeCheck filePath
129129 _diag <- getDiagnostics ideState
130130 _hDiag <- getHiddenDiagnostics ideState
131131 let
@@ -190,7 +190,7 @@ logAndRunRequest label getResults ide pos path = do
190190 logInfo (ideLogger ide) $
191191 label <> " request at position " <> T. pack (showPosition pos) <>
192192 " in file: " <> T. pack path
193- runAction ide $ getResults filePath pos
193+ runAction path ide $ getResults filePath pos
194194
195195-- ---------------------------------------------------------------------
196196
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ codeLens _lf ideState plId CodeLensParams{_textDocument=TextDocumentIdentifier u
125125 logInfo (ideLogger ideState) " Example2.codeLens entered (ideLogger)" -- AZ
126126 case uriToFilePath' uri of
127127 Just (toNormalizedFilePath -> filePath) -> do
128- _ <- runAction ideState $ runMaybeT $ useE TypeCheck filePath
128+ _ <- runAction (fromNormalizedFilePath filePath) ideState $ runMaybeT $ useE TypeCheck filePath
129129 _diag <- getDiagnostics ideState
130130 _hDiag <- getHiddenDiagnostics ideState
131131 let
@@ -187,7 +187,7 @@ logAndRunRequest label getResults ide pos path = do
187187 logInfo (ideLogger ide) $
188188 label <> " request at position " <> T. pack (showPosition pos) <>
189189 " in file: " <> T. pack path
190- runAction ide $ getResults filePath pos
190+ runAction path ide $ getResults filePath pos
191191
192192-- ---------------------------------------------------------------------
193193
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ doFormatting lf providers ideState ft uri params = do
6464 Just provider ->
6565 case uriToFilePath uri of
6666 Just (toNormalizedFilePath -> fp) -> do
67- (_, mb_contents) <- runAction ideState $ getFileContents fp
67+ (_, mb_contents) <- runAction (fromNormalizedFilePath fp) ideState $ getFileContents fp
6868 case mb_contents of
6969 Just contents -> do
7070 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
5959 in
6060 return $ map DynOption $ pp <> pm <> ex
6161
62- m_parsed <- runAction ideState $ getParsedModule fp
62+ m_parsed <- runAction (fromNormalizedFilePath fp) ideState $ getParsedModule fp
6363 fileOpts <- case m_parsed of
6464 Nothing -> return []
6565 Just pm -> fromDyn pm
You can’t perform that action at this time.
0 commit comments