mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Close #4541 - Fix Haskell project root detection
We weren't joining and returning paths correctly for detecting project roots for Haskell projects, and now we are. Co-authored-by: Rodrigo Mesquita <rodrigo.m.mesquita@gmail.com>
This commit is contained in:
@@ -30,3 +30,13 @@ Execute(Should accept configuration settings):
|
||||
AssertLSPConfig {}
|
||||
let b:ale_haskell_hls_config = {'haskell': {'maxCompletions': 250}}
|
||||
AssertLSPConfig {'haskell': {'maxCompletions': 250}}
|
||||
|
||||
Execute(We should detect the root with cabal.project files, preferred over *.cabal files):
|
||||
call ale#test#SetFilename('../test-files/haskell/haskell-packages-project/package-a/src/folder/dummy.hs')
|
||||
|
||||
AssertLSPProject ale#test#GetFilename('../test-files/haskell/haskell-packages-project')
|
||||
|
||||
Execute(We should a project root with *.cabal files):
|
||||
call ale#test#SetFilename('../test-files/haskell/haskell-simple-package/package-a/src/folder/dummy.hs')
|
||||
|
||||
AssertLSPProject ale#test#GetFilename('../test-files/haskell/haskell-simple-package/package-a')
|
||||
|
||||
Reference in New Issue
Block a user