-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
refactor selection range plugin #3003
Conversation
…ection-range-2996
plugins/hls-selection-range-plugin/src/Ide/Plugin/SelectionRange.hs
Outdated
Show resolved
Hide resolved
plugins/hls-selection-range-plugin/src/Ide/Plugin/SelectionRange.hs
Outdated
Show resolved
Hide resolved
plugins/hls-selection-range-plugin/src/Ide/Plugin/SelectionRange/CodeRange.hs
Outdated
Show resolved
Hide resolved
plugins/hls-selection-range-plugin/src/Ide/Plugin/SelectionRange/CodeRange.hs
Outdated
Show resolved
Hide resolved
plugins/hls-selection-range-plugin/src/Ide/Plugin/SelectionRange/CodeRange.hs
Outdated
Show resolved
Hide resolved
plugins/hls-selection-range-plugin/src/Ide/Plugin/SelectionRange/CodeRange.hs
Outdated
Show resolved
Hide resolved
plugins/hls-selection-range-plugin/src/Ide/Plugin/SelectionRange.hs
Outdated
Show resolved
Hide resolved
plugins/hls-selection-range-plugin/src/Ide/Plugin/SelectionRange.hs
Outdated
Show resolved
Hide resolved
plugins/hls-selection-range-plugin/src/Ide/Plugin/SelectionRange.hs
Outdated
Show resolved
Hide resolved
cc @sloorush |
Oops, I started looking at this before I saw it was a draft, apologies if I made lots of comments that you were going to fix anyway 😅 |
Thank you for your valuable suggestions! I'm a bit hurry, to make sure not to block sloorush for too long. |
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.
Should we also rename the plugin to hls-range-plugin
(as you suggested) in this PR?
@sloorush As we actually have more time than I initially expected, I will include that in this PR, and polish the code |
Worth pointing out that we do publish the plugin package to Hackage. I think that's fine, though. |
Seems that this PR is also affected by #2997 |
Maybe this is ready for a review, while I'm adding unit tests to individual functions. |
I'm feeling good about this, merging. |
hls-selection-range-plugin has been renamed to hls-code-range-plugin upstream Update profiles/updates/3Q-2022 See: haskell/haskell-language-server#3003 Signed-off-by: hololeap <[email protected]>
hls-selection-range-plugin has been renamed to hls-code-range-plugin upstream Update profiles/updates/3Q-2022 See: haskell/haskell-language-server#3003 Signed-off-by: hololeap <[email protected]>
This PR should close #2996 and #3001
In brief,
hls-selection-range-plugin
is changed tohls-code-range-plugin
, and the code is rewritten so that adding"folding range" to this plugin becomes relatively easy.
@sloorush please check if the refactor satisfies your needs.