Fix LSP slowness, improve error messages

This commit is contained in:
2026-02-23 20:48:25 -08:00
parent 3cc3801f4d
commit 69a7b6bed8
5 changed files with 38 additions and 31 deletions

View File

@@ -199,7 +199,8 @@ checkFile fn = unsafePerformIO $ do
else pure MkUnit
(Right (top, json)) <- (do
putStrLn "processModule"
_ <- switchModule lspFileSource modName
mod <- processModule emptyFC lspFileSource Nil modName
modifyTop [ currentMod := mod; ops := mod.modOps ]
-- pull out errors and infos
top <- getTop