Skip to content

Commit bc457df

Browse files
committed
Update to use ghcide based on mpickering/wip/stale-logic
1 parent 0a7f639 commit bc457df

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

exe/Main.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,14 @@ main = do
219219
putStrLn "\nStep 3/6: Initializing the IDE"
220220
vfs <- makeVFSHandle
221221
debouncer <- newAsyncDebouncer
222-
(ide, _worker) <- 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 "\nStep 4/6: Type checking the files"
225225
setFilesOfInterest ide $ HashSet.fromList $ map toNormalizedFilePath' files
226226
_ <- runActionSync "TypecheckTest" ide $ uses TypeCheck (map toNormalizedFilePath' files)
227227
-- results <- runActionSync ide $ use TypeCheck $ toNormalizedFilePath' "src/Development/IDE/Core/Rules.hs"
228228
-- results <- runActionSync ide $ use TypeCheck $ toNormalizedFilePath' "exe/Main.hs"
229+
cancel worker
229230
return ()
230231

231232
expandFiles :: [FilePath] -> IO [FilePath]

src/Ide/Types.hs

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ data PluginCommand = forall a. (FromJSON a) =>
8383
, commandDesc :: T.Text
8484
, commandFunc :: CommandFunction a
8585
}
86+
8687
-- ---------------------------------------------------------------------
8788

8889
type CommandFunction a = LSP.LspFuncs Config

0 commit comments

Comments
 (0)