From 806b41016be35c399b87784f349682af618a9acf Mon Sep 17 00:00:00 2001 From: Jesse van Muijden Date: Mon, 4 Sep 2023 14:29:43 -0400 Subject: [PATCH] fix(vscode): add missing handler --- src/Pact/LSP/Handlers.hs | 3 +++ src/Pact/LSP/Server.hs | 1 + 2 files changed, 4 insertions(+) diff --git a/src/Pact/LSP/Handlers.hs b/src/Pact/LSP/Handlers.hs index 96cb010..2d4945a 100644 --- a/src/Pact/LSP/Handlers.hs +++ b/src/Pact/LSP/Handlers.hs @@ -39,6 +39,9 @@ documentChangeNotificationHandler = notificationHandler STextDocumentDidChange $ workspaceChangeNotificationHandler :: Handlers HandlerM workspaceChangeNotificationHandler = notificationHandler SWorkspaceDidChangeConfiguration $ const (pure ()) +workspaceDidChangeWatchedFilesHandler :: Handlers HandlerM +workspaceDidChangeWatchedFilesHandler = notificationHandler SWorkspaceDidChangeWatchedFiles $ const (pure ()) + documentOpenNotificationHandler :: Handlers HandlerM documentOpenNotificationHandler = notificationHandler STextDocumentDidOpen $ \msg -> do let _uri = msg ^. params.textDocument.uri diff --git a/src/Pact/LSP/Server.hs b/src/Pact/LSP/Server.hs index 153e66f..a2c0047 100644 --- a/src/Pact/LSP/Server.hs +++ b/src/Pact/LSP/Server.hs @@ -54,6 +54,7 @@ runWith i o l = do , documentSaveNotificationHandler , documentChangeNotificationHandler , workspaceChangeNotificationHandler + , workspaceDidChangeWatchedFilesHandler , hoverRequestHandler , completionRequestHandler ]