-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
base: master
Are you sure you want to change the base?
Conversation
ce74f12
to
120d8ac
Compare
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! |
a9f5b7c
to
92bbd8e
Compare
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
?