-
-
Notifications
You must be signed in to change notification settings - Fork 398
Migrate change-type-signature-plugin to use structured diagnostics #4632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5556c3e
to
be06dc8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for taking the time and modernising the whole plugin!
Small comments, otherwise good to go, imo
plugins/hls-change-type-signature-plugin/src/Ide/Plugin/ChangeTypeSignature.hs
Outdated
Show resolved
Hide resolved
matchingDiagnostic :: ErrInfo -> Maybe DeclName | ||
matchingDiagnostic ErrInfo{errInfoContext} = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need that? Should we open a GHC issue for adding the DeclName
context to the error message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need that?
Sadly, I think we do
Should we open a GHC issue for adding the
DeclName
context to the error message?
That would be awesome
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Stack CI test failure is genuine, otherwise, let's merge! |
92bbd8e
to
e25716f
Compare
This pull request has been removed from the queue for the following reason: The merge conditions cannot be satisfied due to failing checks:You may have to fix your CI before adding the pull request to the queue again. |
@Mergifyio requeue |
❌ Command disallowed due to command restrictions in the Mergify configuration.
|
This addresses using structured diagnostics from GHC (rather than regular expressions) for
hls-change-type-signature-plugin
.A couple of notes:
Development.IDE.GHC.Compat.Error
?