Skip to content

Commit 74cab28

Browse files
committed
Fix: Set CWD to containing directory, rather than file
1 parent 3d9f964 commit 74cab28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ provider plId ideState typ contents fp fo = withIndefiniteProgress title Cancell
6969
, ("--end-line=" <>) . show <$> regionEndLine region
7070
]
7171
<> map ("-o" <>) fileOpts
72-
){cwd = Just fp'}
72+
){cwd = Just $ takeDirectory fp'}
7373
contents
7474
T.hPutStrLn stderr err
7575
case exitCode of

0 commit comments

Comments
 (0)