forked from haskell/haskell-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow GHC plugins to be called with an updated StringBuffer (haskell/…
…ghcide#698) * Ignore tags file * Pass an updated StringBuffer in ModSummary construction The `getModSummaryFromBuffer` function constructs a `ModSummary` that will be included in the `ParsedModule` data structure ghcide will later on typecheck, calling any registred plugin in the process. There was a problem, though: such `ModSummary` didn't include the updated `StringBuffer` representing the in-memory content of a file being edited (inclusive of all its unsaved changes). This was causing plugins to not react in real time and emitting diagnostics only upon save. This commit fixes it.
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ bench-temp/ | |
.shake/ | ||
ghcide | ||
*.benchmark-gcStats | ||
tags |
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