File tree 2 files changed +7
-8
lines changed
ghcide/src/Development/IDE/Plugin
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
89
89
then basePlugins ++ examplePlugins
90
90
else basePlugins
91
91
basePlugins =
92
- GhcIde. descriptors ++
93
92
#if pragmas
94
93
Pragmas. descriptor " pragmas" :
95
94
#endif
@@ -135,7 +134,9 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
135
134
#if splice
136
135
Splice. descriptor " splice" :
137
136
#endif
138
- []
137
+ -- The ghcide descriptors should come last so that the notification handlers
138
+ -- (which restart the Shake build) run after everything else
139
+ GhcIde. descriptors
139
140
examplePlugins =
140
141
[Example. descriptor " eg"
141
142
,Example2. descriptor " eg2"
Original file line number Diff line number Diff line change @@ -179,13 +179,11 @@ extensibleNotificationPlugins defaultConfig xs = Plugin mempty handlers
179
179
Nothing -> do
180
180
liftIO $ logInfo (ideLogger ide) " extensibleNotificationPlugins no enabled plugins"
181
181
pure ()
182
- -- We run the notifications in order, so the built-in ghcide
183
- -- processing (which restarts the shake process) comes last
184
- -- Just fs -> void $ runConcurrentlyNotification (show m) fs ide params
185
182
Just fs -> do
186
- liftIO $ logInfo (ideLogger ide) $ " extensibleNotificationPlugins number of plugins:" <> T. pack (show (length fs))
187
- -- run notification handlers in parallel
188
- mapConcurrently_ (\ (_pid,f) -> f ide params) fs
183
+ -- We run the notifications in order, so the core ghcide provider
184
+ -- (which restarts the shake process) hopefully comes last
185
+ -- TODO tracing
186
+ mapM_ (\ (_pid,f) -> f ide params) fs
189
187
190
188
-- ---------------------------------------------------------------------
191
189
You can’t perform that action at this time.
0 commit comments