-
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability for plugins to handle file change notifications (#1588)
* Provide pluginNotificationhandlers too Like pluginHandlers, but for notifications At present the last one in the chain wins, so if one is set it overrides the one built into ghcide * Fix handling of config * run the handlers in parallel * add missing instances * Extract ghcide notification handlers to an HLS plugin This is required to allow for user defined notification handlers, otherwise HLS plugins will overwrite the ghcide handlers and nothing will work * Update hls-plugin-api/src/Ide/Types.hs Co-authored-by: wz1000 <zubin.duggal@gmail.com> * bump version numbers to track breaking changes * hlint pragma * fixup! Update hls-plugin-api/src/Ide/Types.hs * relax depends constraints * redundant import * fixup! Update hls-plugin-api/src/Ide/Types.hs * clean up * run notification handlers sequentially * Drop PluginNotification (redundant) * sort out tracing Co-authored-by: Alan Zimmerman <alanzimm@fb.com> Co-authored-by: wz1000 <zubin.duggal@gmail.com>
- Loading branch information
1 parent
7cb4ab7
commit b9c6e6c
Showing
18 changed files
with
137 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.