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
195
195
, optInterfaceLoadingDiagnostics = argsTesting
196
196
}
197
197
debouncer <- newAsyncDebouncer
198
- initialise caps (mainRule >> pluginRules plugins)
198
+ fst <$> initialise caps (mainRule >> pluginRules plugins)
199
199
getLspId event hlsLogger debouncer options vfs
200
200
else do
201
201
-- GHC produces messages with UTF8 in them, so make sure the terminal doesn't error
@@ -219,7 +219,7 @@ main = do
219
219
putStrLn " \n Step 3/6: Initializing the IDE"
220
220
vfs <- makeVFSHandle
221
221
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
223
223
224
224
putStrLn " \n Step 4/6: Type checking the files"
225
225
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
125
125
logInfo (ideLogger ideState) " Example.codeLens entered (ideLogger)" -- AZ
126
126
case uriToFilePath' uri of
127
127
Just (toNormalizedFilePath -> filePath) -> do
128
- _ <- runAction " Example.codeLens" ideState $ runMaybeT $ useE TypeCheck filePath
128
+ _ <- runIdeAction " Example.codeLens" ideState $ runMaybeT $ useE TypeCheck filePath
129
129
_diag <- getDiagnostics ideState
130
130
_hDiag <- getHiddenDiagnostics ideState
131
131
let
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 (fromNormalizedFilePath filePath) ideState $ runMaybeT $ useE TypeCheck filePath
128
+ _ <- runIdeAction (fromNormalizedFilePath filePath) ideState $ runMaybeT $ useE TypeCheck filePath
129
129
_diag <- getDiagnostics ideState
130
130
_hDiag <- getHiddenDiagnostics ideState
131
131
let
You can’t perform that action at this time.
0 commit comments