From 60f776a085b7e814bb2f26b7050bd70805204148 Mon Sep 17 00:00:00 2001 From: George Gerasev Date: Fri, 30 Aug 2024 16:12:11 +0300 Subject: [PATCH] docs update --- .../hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs b/plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs index 187a8cacac..724a7800e1 100644 --- a/plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs +++ b/plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs @@ -121,14 +121,7 @@ instance Pretty CabalAddCommandParams where -- | Creates a code action that calls the `cabalAddCommand`, -- using dependency-version suggestion pairs as input. -- --- Returns disabled action if no cabal files given. --- --- Takes haskell file and cabal file paths to create a relative path --- to the haskell file, which is used to get a `BuildTarget`. --- --- In current implementation the dependency is being added to the main found --- build target, but if there will be a way to get all build targets from a file --- it will be possible to support addition to a build target of choice. +-- Gives a code action for all found build targets. addDependencySuggestCodeAction :: PluginId -> VersionedTextDocumentIdentifier -- ^ Cabal's versioned text identifier