File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,10 @@ getDependencyEdit recorder env cabalFilePath buildTarget dependency = do
277
277
logWith recorder Debug $ LogCreatedEdit edit
278
278
pure edit
279
279
280
- -- | Given a path to a haskell file, returns the closest cabal file, except if package.yaml is also present.
280
+ -- | Given a path to a haskell file, returns the closest cabal file.
281
+ -- If package.yaml is present in same directory as .cabal file, it returns nothing, because adding a dependency to a generated cabal file
282
+ -- will break propagation of changes from package.yaml to cabal file in stack project.
283
+ --
281
284
-- If cabal file wasn't found, gives Nothing.
282
285
findResponsibleCabalFile :: FilePath -> IO (Maybe FilePath )
283
286
findResponsibleCabalFile haskellFilePath = do
You can’t perform that action at this time.
0 commit comments