Skip to content

Commit 78ffc49

Browse files
committed
delete test
1 parent 5fa15db commit 78ffc49

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

test/functional/Diagnostic.hs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,8 @@ import Test.Hls.Command
1010
-- ---------------------------------------------------------------------
1111

1212
tests :: TestTree
13-
tests = testGroup "diagnostics providers" [
14-
basicTests
15-
, warningTests
16-
]
13+
tests = testGroup "diagnostics providers" [ warningTests ]
1714

18-
basicTests :: TestTree
19-
basicTests = testGroup "Diagnostics work" [
20-
testCase "example plugin produces diagnostics" $
21-
runSession hlsCommandExamplePlugin fullCaps "test/testdata/diagnostics" $ do
22-
doc <- openDoc "Foo.hs" "haskell"
23-
diags <- waitForDiagnosticsFromSource doc "example2"
24-
reduceDiag <- liftIO $ inspectDiagnostic diags ["example2 diagnostic, hello world"]
25-
liftIO $ do
26-
length diags @?= 1
27-
reduceDiag ^. LSP.range @?= Range (Position 0 0) (Position 1 0)
28-
reduceDiag ^. LSP.severity @?= Just DsError
29-
]
3015

3116
warningTests :: TestTree
3217
warningTests = testGroup "Warnings are warnings" [

0 commit comments

Comments
 (0)