Make URL absolute in workspace/didChangeWatchedFile 0.11.0.1
authorLuke Lau <luke_lau@icloud.com>
Fri, 15 May 2020 13:16:15 +0000 (14:16 +0100)
committerLuke Lau <luke_lau@icloud.com>
Fri, 15 May 2020 13:16:15 +0000 (14:16 +0100)
lsp-test.cabal
src/Language/Haskell/LSP/Test.hs

index e682eb5f99de9ee5b34868b9b1aed6bb3fe9c482..1fc743a9cb5b076bb61c7c3f1324701f564651db 100644 (file)
@@ -1,5 +1,5 @@
 name:                lsp-test
-version:             0.11.0.0
+version:             0.11.0.1
 synopsis:            Functional test framework for LSP servers.
 description:
   A test framework for writing tests against
index 761151e8ac9f282d9b8652f4b70a0ee29fbf4cbe..81bdc8a8b465087baa960fbc6b1303e8497fcff7 100644 (file)
@@ -399,7 +399,7 @@ createDoc file languageId contents = do
 
   when shouldSend $
     sendNotification WorkspaceDidChangeWatchedFiles $ DidChangeWatchedFilesParams $
-      List [ FileEvent (filePathToUri file) FcCreated ]
+      List [ FileEvent (filePathToUri (rootDir </> file)) FcCreated ]
   openDoc' file languageId contents
 
 -- | Opens a text document that /exists on disk/, and sends a