Skip to content

Commit 721c435

Browse files
committed
add comment
1 parent 6ec5617 commit 721c435

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ghcide/test/exe/Main.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,10 @@ diagnosticTests = testGroup "diagnostics"
423423
_ <- createDoc "ModuleA.hs" "haskell" contentA
424424
expectDiagnostics [("ModuleB.hs", [])]
425425
, testCase "add missing module (non workspace)" $
426+
-- By default lsp-test sends FileWatched notifications for all files, which we don't want
427+
-- as non workspace modules will not be watched by the LSP server.
428+
-- To work around this, we tell lsp-test that our client doesn't have the
429+
-- FileWatched capability, which is enough to disable the notifications
426430
withTempDir $ \tmpDir -> runInDir'' lspTestCapsNoFileWatches tmpDir "." "." [] $ do
427431
let contentB = T.unlines
428432
[ "module ModuleB where"

0 commit comments

Comments
 (0)