File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ main = do
195195 , optInterfaceLoadingDiagnostics = argsTesting
196196 }
197197 debouncer <- newAsyncDebouncer
198- initialise caps (mainRule >> pluginRules plugins)
198+ fst <$> initialise caps (mainRule >> pluginRules plugins)
199199 getLspId event hlsLogger debouncer options vfs
200200 else do
201201 -- GHC produces messages with UTF8 in them, so make sure the terminal doesn't error
@@ -219,7 +219,7 @@ main = do
219219 putStrLn " \n Step 3/6: Initializing the IDE"
220220 vfs <- makeVFSHandle
221221 debouncer <- newAsyncDebouncer
222- ide <- initialise def mainRule (pure $ IdInt 0 ) (showEvent lock) (logger Info ) debouncer (defaultIdeOptions $ loadSession dir) vfs
222+ ( ide, _worker) <- initialise def mainRule (pure $ IdInt 0 ) (showEvent lock) (logger Info ) debouncer (defaultIdeOptions $ loadSession dir) vfs
223223
224224 putStrLn " \n Step 4/6: Type checking the files"
225225 setFilesOfInterest ide $ HashSet. fromList $ map toNormalizedFilePath' files
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 " Example.codeLens" ideState $ runMaybeT $ useE TypeCheck filePath
128+ _ <- runIdeAction " Example.codeLens" ideState $ runMaybeT $ useE TypeCheck filePath
129129 _diag <- getDiagnostics ideState
130130 _hDiag <- getHiddenDiagnostics ideState
131131 let
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 (fromNormalizedFilePath filePath) ideState $ runMaybeT $ useE TypeCheck filePath
128+ _ <- runIdeAction (fromNormalizedFilePath filePath) ideState $ runMaybeT $ useE TypeCheck filePath
129129 _diag <- getDiagnostics ideState
130130 _hDiag <- getHiddenDiagnostics ideState
131131 let
You can’t perform that action at this time.
0 commit comments