File tree 1 file changed +2
-2
lines changed
plugins/hls-cabal-fmt-plugin/src/Ide/Plugin
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ provider recorder _ _ _ (FormatRange _) _ _ _ = do
64
64
throwError $ PluginInvalidParams " You cannot format a text-range using cabal-fmt."
65
65
provider recorder plId ideState _ FormatText contents nfp opts = do
66
66
let cabalFmtArgs = [ " --indent" , show tabularSize]
67
- cabalFmtExePath <- fmap T. unpack $ liftIO $ runAction " cabal-gild " ideState $ usePropertyAction # path plId properties
67
+ cabalFmtExePath <- fmap T. unpack $ liftIO $ runAction " cabal-fmt " ideState $ usePropertyAction # path plId properties
68
68
x <- liftIO $ findExecutable cabalFmtExePath
69
69
case x of
70
70
Just _ -> do
@@ -85,7 +85,7 @@ provider recorder plId ideState _ FormatText contents nfp opts = do
85
85
pure $ InL fmtDiff
86
86
Nothing -> do
87
87
log Error $ LogFormatterBinNotFound cabalFmtExePath
88
- throwError (PluginInternalError " No installation of cabal-gild could be found. Please install it globally, or provide the full path to the executable" )
88
+ throwError (PluginInternalError " No installation of cabal-fmt could be found. Please install it globally, or provide the full path to the executable" )
89
89
where
90
90
fp = fromNormalizedFilePath nfp
91
91
tabularSize = opts ^. L. tabSize
You can’t perform that action at this time.
0 commit comments