Skip to content

Commit

Permalink
Merge branch 'main' into tasty-bench
Browse files Browse the repository at this point in the history
  • Loading branch information
mmhat authored Nov 7, 2024
2 parents ff9a915 + d1fc29b commit 1cd2985
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 57 deletions.
5 changes: 5 additions & 0 deletions dhall-lsp-server/src/Dhall/LSP/Handlers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,11 @@ cancelationHandler :: Handlers HandlerM
cancelationHandler =
LSP.notificationHandler SMethod_CancelRequest \_ -> return ()

-- This handler is a stub to prevent `lsp:no handler for:` messages.
documentDidCloseHandler :: Handlers HandlerM
documentDidCloseHandler =
LSP.notificationHandler SMethod_TextDocumentDidClose \_ -> return ()

handleErrorWithDefault :: (Either a1 b -> HandlerM a2)
-> b
-> HandlerM a2
Expand Down
2 changes: 2 additions & 0 deletions dhall-lsp-server/src/Dhall/LSP/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import Dhall.LSP.Handlers
, workspaceChangeConfigurationHandler
, textDocumentChangeHandler
, cancelationHandler
, documentDidCloseHandler
)
import Dhall.LSP.State
import Language.LSP.Server (LspServerLog, Options(..), ServerDefinition(..), type (<~>)(..))
Expand Down Expand Up @@ -92,6 +93,7 @@ run = withLogger $ \ioLogger -> do
, workspaceChangeConfigurationHandler
, textDocumentChangeHandler
, cancelationHandler
, documentDidCloseHandler
]

let interpretHandler environment = Iso{..}
Expand Down
Loading

0 comments on commit 1cd2985

Please sign in to comment.