@@ -65,9 +65,6 @@ descriptor :: Recorder (WithPriority Log) -> PluginId -> PluginDescriptor IdeSta
65
65
descriptor recorder plId =
66
66
(defaultCabalProjectPluginDescriptor plId " Provides a variety of IDE features in cabal.project files" )
67
67
{ pluginRules = cabalProjectRules recorder plId
68
- , pluginHandlers =
69
- mconcat
70
- []
71
68
, pluginNotificationHandlers =
72
69
mconcat
73
70
[ mkPluginNotificationHandler LSP. SMethod_TextDocumentDidOpen $
@@ -123,9 +120,9 @@ restartCabalProjectShakeSession shakeExtras vfs file actionMsg actionBetweenSess
123
120
124
121
cabalProjectRules :: Recorder (WithPriority Log ) -> PluginId -> Rules ()
125
122
cabalProjectRules 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.
127
124
ofInterestRules recorder
128
- -- Rule to produce diagnostics for cabal project files.
125
+ -- Rule to produce diagnostics for cabal. project files.
129
126
define (cmapWithPrio LogShake recorder) $ \ ParseCabalProjectFields file -> do
130
127
config <- getPluginConfigAction plId
131
128
if not (plcGlobalOn config && plcDiagnosticsOn config)
@@ -175,16 +172,16 @@ cabalProjectRules recorder plId = do
175
172
pure (warnDiags, Just projCfg)
176
173
177
174
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.
179
176
-- Must be careful to not impede the performance too much. Crucial to
180
177
-- a snappy IDE experience.
181
178
kick
182
179
where
183
180
log' = logWith recorder
184
181
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.
188
185
189
186
It is paramount that this kick-function can be run quickly, since it is a blocking
190
187
function invocation.
@@ -196,10 +193,10 @@ kick = do
196
193
197
194
198
195
-- ----------------------------------------------------------------
199
- -- Cabal project file of Interest rules and global variable
196
+ -- Cabal. project file of Interest rules and global variable
200
197
-- ----------------------------------------------------------------
201
198
202
- {- | Cabal project files that are currently open in the lsp-client.
199
+ {- | Cabal. project files that are currently open in the lsp-client.
203
200
Specific actions happen when these files are saved, closed or modified,
204
201
such as generating diagnostics, re-parsing, etc...
205
202
0 commit comments