tfausak / purple-yolk

:hatching_chick: A Haskell IDE for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=taylorfausak.purple-yolk
MIT License
26 stars 2 forks source link

Fix behavior when editing a single file #80

Closed tfausak closed 1 month ago

tfausak commented 1 month ago

Fixes #79.

tfausak commented 1 month ago

Currently this fixes the "Error: Missing workspace folder!" problem described in #79. It still doesn't address the problem of the discovery mechanism preferring Cabal or Stack over GHCi when really GHCi would be more appropriate.

tfausak commented 1 month ago

Ok now it also fixes the other problem. If you open a single Haskell file, the discovery mechanism will choose GHCi (if it's available). This works with single files (no workspace) as well as a workspace that only has a single Haskell file in it.

Note that if you open a folder with multiple Haskell files but no (Cabal or Stack) project files, Purple Yolk will only work for the first file that you open.