mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-09-19 20:57:21 +03:00
fix another test that relies on plugin ordering
This commit is contained in:
parent
8d564d1518
commit
753042c0f4
@ -47,7 +47,10 @@ providerTests = testGroup "formatting provider" [
|
||||
testCase "respects none" $ runSessionWithConfig (formatConfig "none") hlsCommand fullCaps "test/testdata/format" $ do
|
||||
doc <- openDoc "Format.hs" "haskell"
|
||||
resp <- request STextDocumentFormatting $ DocumentFormattingParams Nothing doc (FormattingOptions 2 True Nothing Nothing Nothing)
|
||||
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)
|
||||
liftIO $ resp ^. LSP.result @?= Left (ResponseError InvalidRequest
|
||||
("No plugin enabled for STextDocumentFormatting, available:\n"
|
||||
<> "PluginId \"floskell\"\nPluginId \"fourmolu\"\nPluginId \"stylish-haskell\"\nPluginId \"brittany\"\nPluginId \"ormolu\"\n")
|
||||
Nothing)
|
||||
|
||||
, requiresOrmoluPlugin . requiresFloskellPlugin $ testCase "can change on the fly" $ runSession hlsCommand fullCaps "test/testdata/format" $ do
|
||||
formattedOrmolu <- liftIO $ T.readFile "test/testdata/format/Format.ormolu.formatted.hs"
|
||||
|
Loading…
Reference in New Issue
Block a user