Skip to content

Commit 0ae76eb

Browse files
soulomoonfendor
andauthored
Apply suggestions from code review
Co-authored-by: fendor <fendor@users.noreply.github.com>
1 parent 19aed40 commit 0ae76eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lsp/src/Language/LSP/Server/Control.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ runServerWith ::
147147
runServerWith ioLogger logger clientIn clientOut serverDefinition = do
148148
ioLogger <& Starting `WithSeverity` Info
149149
cout <- atomically newTChan :: IO (TChan FromServerMessage)
150-
withAsync (sendServer ioLogger cout clientOut) $ \_sendAsync -> do
150+
withAsync (sendServer ioLogger cout clientOut) $ \sendServerAsync -> do
151151
let sendMsg = atomically . writeTChan cout
152-
res <- ioLoop ioLogger logger clientIn serverDefinition emptyVFS sendMsg (wait _sendAsync)
152+
res <- ioLoop ioLogger logger clientIn serverDefinition emptyVFS sendMsg (wait sendServerAsync)
153153
ioLogger <& ServerStopped `WithSeverity` Info
154154
return res
155155

lsp/src/Language/LSP/Server/Core.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ isExiting = do
761761
b <- resExit . resState <$> getLspEnv
762762
r <- liftIO $ C.waitBarrierMaybe b
763763
pure $ case r of
764-
Just _ -> True
764+
Just () -> True
765765
Nothing -> False
766766

767767
-- | Blocks until the server receives a 'shutdown' request.

0 commit comments

Comments
 (0)