Skip to content

Migrate hls-refactor-plugin to use structured diagnostics#4708

Merged
dyniec merged 9 commits into
haskell:masterfrom
dyniec:refactor-plugin-structured-diagnostics
Jul 20, 2026
Merged

Migrate hls-refactor-plugin to use structured diagnostics#4708
dyniec merged 9 commits into
haskell:masterfrom
dyniec:refactor-plugin-structured-diagnostics

Conversation

@dyniec

@dyniec dyniec commented Aug 25, 2025

Copy link
Copy Markdown
Collaborator

Moves hls-refactor-plugin to use structured diagnostics. It's a part of #4605 effort.

Right now only tackles redundant imports part.

@dyniec
dyniec force-pushed the refactor-plugin-structured-diagnostics branch 4 times, most recently from 5729cb6 to 3f56a44 Compare June 8, 2026 10:01
@dyniec
dyniec force-pushed the refactor-plugin-structured-diagnostics branch 3 times, most recently from 5144a71 to d347b9d Compare July 4, 2026 20:06
@dyniec

dyniec commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

I think the change is now ready to review. Should work on all compilers (at least those we have devshells for). Unfortunately a lot of nice changes from compiler are available from 9.8 so old version of code is guarded behind CPP for older compiler.

@dyniec
dyniec marked this pull request as ready for review July 5, 2026 12:09
@fendor fendor added the status: needs review This PR is ready for review label Jul 7, 2026

@VeryMilkyJoe VeryMilkyJoe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR!
Looks good, I just have some nitpicks :)

Comment thread plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs Outdated
Comment thread plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs Outdated
Comment thread plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs Outdated
Comment thread plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs Outdated
Comment thread plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs Outdated
Comment thread plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs Outdated
Comment thread plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs Outdated
Comment thread plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs Outdated
Comment thread plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs Outdated
@fendor fendor removed the status: needs review This PR is ready for review label Jul 12, 2026
@fendor

fendor commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

@dyniec Feel free to merge once the review is addressed :)

@dyniec

dyniec commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator Author

@VeryMilkyJoe thanks for the feedback. I will address this later this week

@VeryMilkyJoe

Copy link
Copy Markdown
Collaborator

@VeryMilkyJoe thanks for the feedback. I will address this later this week

feel free to ignore comments, you disagree with though :)

@dyniec
dyniec force-pushed the refactor-plugin-structured-diagnostics branch from b81f902 to 55107d1 Compare July 19, 2026 21:11
@dyniec
dyniec force-pushed the refactor-plugin-structured-diagnostics branch from 55107d1 to 75d152d Compare July 20, 2026 10:46
@dyniec
dyniec merged commit 24aff33 into haskell:master Jul 20, 2026
42 checks passed
@dyniec
dyniec deleted the refactor-plugin-structured-diagnostics branch July 20, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants