File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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:\n PluginId \" floskell\"\n PluginId \" fourmolu\"\n PluginId \" ormolu\"\n PluginId \" stylish-haskell\"\n PluginId \" brittany\"\n " Nothing )
50+ liftIO $ resp ^. LSP. result @?= Left (ResponseError InvalidRequest
51+ (" No plugin enabled for STextDocumentFormatting, available:\n "
52+ <> " PluginId \" floskell\"\n PluginId \" fourmolu\"\n PluginId \" stylish-haskell\"\n PluginId \" brittany\"\n PluginId \" 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"
You can’t perform that action at this time.
0 commit comments