We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ec5617 commit 721c435Copy full SHA for 721c435
ghcide/test/exe/Main.hs
@@ -423,6 +423,10 @@ diagnosticTests = testGroup "diagnostics"
423
_ <- createDoc "ModuleA.hs" "haskell" contentA
424
expectDiagnostics [("ModuleB.hs", [])]
425
, 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
430
withTempDir $ \tmpDir -> runInDir'' lspTestCapsNoFileWatches tmpDir "." "." [] $ do
431
let contentB = T.unlines
432
[ "module ModuleB where"
0 commit comments