Skip to content

Commit 8d424f8

Browse files
pepeiborrasloorush
authored andcommitted
fix another test that relies on plugin ordering
1 parent 52e3128 commit 8d424f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/functional/Format.hs

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ providerTests = testGroup "formatting provider" [
4747
testCase "respects none" $ runSessionWithConfig (formatConfig "none") hlsCommand fullCaps "test/testdata/format" $ do
4848
doc <- openDoc "Format.hs" "haskell"
4949
resp <- request STextDocumentFormatting $ DocumentFormattingParams Nothing doc (FormattingOptions 2 True Nothing Nothing Nothing)
50-
liftIO $ resp ^. LSP.result @?= Left (ResponseError InvalidRequest "No plugin enabled for STextDocumentFormatting, available:\nPluginId \"floskell\"\nPluginId \"fourmolu\"\nPluginId \"ormolu\"\nPluginId \"stylish-haskell\"\nPluginId \"brittany\"\n" Nothing)
50+
liftIO $ resp ^. LSP.result @?= Left (ResponseError InvalidRequest
51+
("No plugin enabled for STextDocumentFormatting, available:\n"
52+
<> "PluginId \"floskell\"\nPluginId \"fourmolu\"\nPluginId \"stylish-haskell\"\nPluginId \"brittany\"\nPluginId \"ormolu\"\n")
53+
Nothing)
5154

5255
, requiresOrmoluPlugin . requiresFloskellPlugin $ testCase "can change on the fly" $ runSession hlsCommand fullCaps "test/testdata/format" $ do
5356
formattedOrmolu <- liftIO $ T.readFile "test/testdata/format/Format.ormolu.formatted.hs"

0 commit comments

Comments
 (0)