@@ -140,7 +140,7 @@ descriptor recorder plId =
140140 whenUriFile :: Uri -> (NormalizedFilePath -> IO () ) -> IO ()
141141 whenUriFile uri act = whenJust (uriToFilePath uri) $ act . toNormalizedFilePath'
142142
143- {- | Helper function to restart the shake session, specifically for modifying . cabal files.
143+ {- | Helper function to restart the shake session, specifically for modifying cabal.project files.
144144No special logic, just group up a bunch of functions you need for the base
145145Notification Handlers.
146146
@@ -158,9 +158,9 @@ restartCabalShakeSession shakeExtras vfs file actionMsg actionBetweenSession = d
158158
159159cabalRules :: Recorder (WithPriority Log ) -> PluginId -> Rules ()
160160cabalRules recorder plId = do
161- -- Make sure we initialise the cabal files-of-interest.
161+ -- Make sure we initialise the cabal project files-of-interest.
162162 ofInterestRules recorder
163- -- Rule to produce diagnostics for cabal files.
163+ -- Rule to produce diagnostics for cabal project files.
164164 define (cmapWithPrio LogShake recorder) $ \ ParseCabalProjectFields file -> do
165165 config <- getPluginConfigAction plId
166166 if not (plcGlobalOn config && plcDiagnosticsOn config)
@@ -210,29 +210,28 @@ cabalRules recorder plId = do
210210 pure (warnDiags, Just projCfg)
211211
212212 action $ do
213- -- Run the cabal kick. This code always runs when 'shakeRestart' is run.
213+ -- Run the cabal project kick. This code always runs when 'shakeRestart' is run.
214214 -- Must be careful to not impede the performance too much. Crucial to
215215 -- a snappy IDE experience.
216216 kick
217217 where
218218 log' = logWith recorder
219219
220- {- | This is the kick function for the cabal plugin.
220+ {- | This is the kick function for the cabal project plugin.
221221We run this action, whenever we shake session us run/restarted, which triggers
222- actions to produce diagnostics for cabal files.
222+ actions to produce diagnostics for cabal project files.
223223
224224It is paramount that this kick-function can be run quickly, since it is a blocking
225225function invocation.
226226-}
227227kick :: Action ()
228228kick = do
229229 files <- HashMap. keys <$> getCabalFilesOfInterestUntracked
230- -- let keys = map Types.ParseCabalProjectFile files
231230 Shake. runWithSignal (Proxy @ " kick/start/cabal-project" ) (Proxy @ " kick/done/cabal-project" ) files Types. ParseCabalProjectFile
232231
233232
234233-- ----------------------------------------------------------------
235- -- Cabal file of Interest rules and global variable
234+ -- Cabal project file of Interest rules and global variable
236235-- ----------------------------------------------------------------
237236
238237{- | Cabal files that are currently open in the lsp-client.
0 commit comments