File tree 1 file changed +13
-1
lines changed
hls-plugin-api/src/Ide/Plugin
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,19 @@ doFormatting lf providers ideState ft uri params = do
62
62
provider lf ideState ft contents fp params
63
63
Nothing -> return $ Left $ responseError $ T. pack $ " Formatter plugin: could not get file contents for " ++ show uri
64
64
Nothing -> return $ Left $ responseError $ T. pack $ " Formatter plugin: uriToFilePath failed for: " ++ show uri
65
- Nothing -> return $ Left $ responseError $ T. pack $ " Formatter plugin: no formatter found for:[" ++ T. unpack mf ++ " ]"
65
+ Nothing -> return $ Left $ responseError $ mconcat
66
+ [ " Formatter plugin: no formatter found for:["
67
+ , mf
68
+ , " ]"
69
+ , if mf == " brittany"
70
+ then T. unlines
71
+ [ " \n The haskell-language-server must be compiled with the agpl flag to provide Brittany."
72
+ , " Stack users add 'agpl: true' in the flags section of the 'stack.yaml' file."
73
+ , " The 'haskell-language-server.cabal' file already has this flag enabled by default."
74
+ , " For more information see: https://github.com/haskell/haskell-language-server/issues/269"
75
+ ]
76
+ else " "
77
+ ]
66
78
67
79
-- ---------------------------------------------------------------------
68
80
You can’t perform that action at this time.
0 commit comments