@@ -322,6 +322,86 @@ test-suite hls-cabal-plugin-tests
322322 , lsp-types
323323 , text
324324
325+ -----------------------------
326+ -- cabal project plugin
327+ -----------------------------
328+
329+ flag cabalProject
330+ description : Enable cabalProject plugin
331+ default : True
332+ manual : True
333+
334+ common cabalProject
335+ if flag(cabalProject)
336+ build-depends : haskell-language-server :hls-cabal-project-plugin
337+ cpp-options : -Dhls_cabal_project
338+
339+ library hls-cabal-project-plugin
340+ import : defaults, pedantic, warnings
341+ if !flag(cabalProject)
342+ buildable : False
343+ exposed-modules :
344+ Ide.Plugin.CabalProject
345+ Ide.Plugin.CabalProject.Parse
346+ Ide.Plugin.CabalProject.Diagnostics
347+ Ide.Plugin.CabalProject.Types
348+
349+ build-depends :
350+ , bytestring
351+ , Cabal-syntax >= 3.7
352+ , containers
353+ , deepseq
354+ , directory
355+ , filepath
356+ , extra >= 1.7.4
357+ , ghcide == 2.11.0.0
358+ , hashable
359+ , hls-plugin-api == 2.11.0.0
360+ , hls-graph == 2.11.0.0
361+ , lens
362+ , lsp ^>= 2.7
363+ , lsp-types ^>= 2.3
364+ , regex-tdfa ^>= 1.3.1
365+ , text
366+ , text-rope
367+ , transformers
368+ , unordered-containers >= 0.2.10.0
369+ , containers
370+ , process
371+ , aeson
372+ , Cabal
373+ , pretty
374+ , cabal-install
375+ , cabal-install-solver
376+ , haskell-language-server :hls-cabal-plugin
377+ , base16-bytestring
378+ , cryptohash-sha1
379+
380+ hs-source-dirs : plugins/hls-cabal-project-plugin/src
381+
382+ test-suite hls-cabal-project-plugin-tests
383+ import : defaults, pedantic, test-defaults, warnings
384+ if !flag(cabalProject)
385+ buildable : False
386+ type : exitcode-stdio-1.0
387+ hs-source-dirs : plugins/hls-cabal-project-plugin/test
388+ main-is : Main.hs
389+ other-modules :
390+ Utils
391+ build-depends :
392+ , bytestring
393+ , Cabal-syntax >= 3.7
394+ , extra
395+ , filepath
396+ , ghcide
397+ , haskell-language-server :hls-cabal-project-plugin
398+ , hls-test-utils == 2.11.0.0
399+ , lens
400+ , lsp-types
401+ , text
402+ , hls-plugin-api
403+ , cabal-install
404+
325405-----------------------------
326406-- class plugin
327407-----------------------------
@@ -1847,6 +1927,7 @@ library
18471927 , pedantic
18481928 -- plugins
18491929 , cabal
1930+ , cabalProject
18501931 , callHierarchy
18511932 , cabalfmt
18521933 , cabalgild
0 commit comments