-
-
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
Abbreviate explicit import code lenses #2769
Conversation
The tests currently don't check anything about the titles, I'm unsure whether it's worth writing a test just for this. Fixes haskell#2765.
0819814
to
6f70bf6
Compare
You could extract the new logic into a pure function. Then you can test it easily without involving lsp-test. Although ultimately we also want an lsp test to ensure that the logic doesn't get removed accidentally. |
Great point, I'll add a test for the abbreviation function. |
I added some tests, which was good, because it was broken :) one day I will not be surprised by this. |
* Abbreviate explicit import code lenses The tests currently don't check anything about the titles, I'm unsure whether it's worth writing a test just for this. Fixes haskell#2765. * Add tests for abbreviation and fix bugs * Fix a warning
Hi, this is my version of hls:
which should already include this pr. I'm still seeing incredibly long code lenses for explicit import. Am I missing anything? Thanks! |
I don't think this PR is in a released version yet. |
It looks like this was merged into master 21 days ago, and I manually built hls from a much more recent commit. |
Can you provide a reproduction? |
Sure! This is what I see from |
@jhrcek You are right. |
The tests currently don't check anything about the titles, I'm unsure
whether it's worth writing a test just for this.
Fixes #2765.
Demo: