File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -131,15 +131,14 @@ instance Pretty CabalAddCommandParams where
131
131
-- build target, but if there will be a way to get all build targets from a file
132
132
-- it will be possible to support addition to a build target of choice.
133
133
addDependencySuggestCodeAction
134
- :: Recorder (WithPriority Log )
135
- -> PluginId
134
+ :: PluginId
136
135
-> VersionedTextDocumentIdentifier -- ^ Cabal's versioned text identifier
137
136
-> [(T. Text , T. Text )] -- ^ A dependency-version suggestion pairs
138
137
-> FilePath -- ^ Path to the haskell file (source of diagnostics)
139
138
-> FilePath -- ^ Path to the cabal file (that will be edited)
140
139
-> GenericPackageDescription
141
140
-> IO [CodeAction ]
142
- addDependencySuggestCodeAction recorder plId verTxtDocId suggestions haskellFilePath cabalFilePath gpd = do
141
+ addDependencySuggestCodeAction plId verTxtDocId suggestions haskellFilePath cabalFilePath gpd = do
143
142
buildTargets <- liftIO $ getBuildTargets gpd cabalFilePath haskellFilePath
144
143
case buildTargets of
145
144
[] -> pure $ mkCodeAction cabalFilePath Nothing <$> suggestions
You can’t perform that action at this time.
0 commit comments