@@ -65,9 +65,6 @@ descriptor :: Recorder (WithPriority Log) -> PluginId -> PluginDescriptor IdeSta
6565descriptor recorder plId =
6666 (defaultCabalProjectPluginDescriptor plId " Provides a variety of IDE features in cabal.project files" )
6767 { pluginRules = cabalProjectRules recorder plId
68- , pluginHandlers =
69- mconcat
70- []
7168 , pluginNotificationHandlers =
7269 mconcat
7370 [ mkPluginNotificationHandler LSP. SMethod_TextDocumentDidOpen $
@@ -123,9 +120,9 @@ restartCabalProjectShakeSession shakeExtras vfs file actionMsg actionBetweenSess
123120
124121cabalProjectRules :: Recorder (WithPriority Log ) -> PluginId -> Rules ()
125122cabalProjectRules recorder plId = do
126- -- Make sure we initialise the cabal project files-of-interest.
123+ -- Make sure we initialise the cabal. project files-of-interest.
127124 ofInterestRules recorder
128- -- Rule to produce diagnostics for cabal project files.
125+ -- Rule to produce diagnostics for cabal. project files.
129126 define (cmapWithPrio LogShake recorder) $ \ ParseCabalProjectFields file -> do
130127 config <- getPluginConfigAction plId
131128 if not (plcGlobalOn config && plcDiagnosticsOn config)
@@ -175,16 +172,16 @@ cabalProjectRules recorder plId = do
175172 pure (warnDiags, Just projCfg)
176173
177174 action $ do
178- -- Run the cabal project kick. This code always runs when 'shakeRestart' is run.
175+ -- Run the cabal. project kick. This code always runs when 'shakeRestart' is run.
179176 -- Must be careful to not impede the performance too much. Crucial to
180177 -- a snappy IDE experience.
181178 kick
182179 where
183180 log' = logWith recorder
184181
185- {- | This is the kick function for the cabal project plugin.
186- We run this action, whenever we shake session us run/restarted, which triggers
187- actions to produce diagnostics for cabal project files.
182+ {- | This is the kick function for the cabal. project plugin.
183+ We run this action, whenever a shake session is run/restarted, which triggers
184+ actions to produce diagnostics for cabal. project files.
188185
189186It is paramount that this kick-function can be run quickly, since it is a blocking
190187function invocation.
@@ -196,10 +193,10 @@ kick = do
196193
197194
198195-- ----------------------------------------------------------------
199- -- Cabal project file of Interest rules and global variable
196+ -- Cabal. project file of Interest rules and global variable
200197-- ----------------------------------------------------------------
201198
202- {- | Cabal project files that are currently open in the lsp-client.
199+ {- | Cabal. project files that are currently open in the lsp-client.
203200Specific actions happen when these files are saved, closed or modified,
204201such as generating diagnostics, re-parsing, etc...
205202
0 commit comments