File tree 1 file changed +4
-1
lines changed
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" [
47
47
testCase " respects none" $ runSessionWithConfig (formatConfig " none" ) hlsCommand fullCaps " test/testdata/format" $ do
48
48
doc <- openDoc " Format.hs" " haskell"
49
49
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 )
51
54
52
55
, requiresOrmoluPlugin . requiresFloskellPlugin $ testCase " can change on the fly" $ runSession hlsCommand fullCaps " test/testdata/format" $ do
53
56
formattedOrmolu <- liftIO $ T. readFile " test/testdata/format/Format.ormolu.formatted.hs"
You can’t perform that action at this time.
0 commit comments