Make URL absolute in workspace/didChangeWatchedFile
[lsp-test.git] / src / Language / Haskell / LSP / Test.hs
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