-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: Support documentSelector in registerCapability #566
Conversation
6eebc15
to
ef0b19a
Compare
To test this PR:
|
@fbricon if you have time to review it that's nice, otherwise I will merge it tomorrow (after writting some tests). |
a232f5d
to
9975813
Compare
I was looking at this PR earlier but didn't immediately make the connection to redhat-developer/intellij-quarkus#1394. I have the same question about whether this introduces behavioral changes and whether it can be done in a way that doesn't impact existing adopters. I'm also curious if |
I gave you an answer, but it is a bug from intellij quarkus and liberty tools. Developping an hack just to keep the highlight for property in microprofile config. Properties is very annoyig.
Yes I know but this class is very big and I am trying to clean up. The methods that I have removed is just to create LSP hover params that adaptors should never used |
9975813
to
8a30246
Compare
After some discussion with @fbricon I manage this case. When It means that it should work with your Liberty Tools without doing some changes. But I suggest that you do this change to avoid sending LSP textDocument/documentHighlight when you click on a java file editor. |
8a30246
to
8efe451
Compare
Fixes redhat-developer#517 Signed-off-by: azerr <[email protected]>
8efe451
to
d5e7278
Compare
@mrglavas I merged the PR and creates a nighty build, please test it to check your highlight continue to work. Thanks. |
@angelozerr Thanks for addressing this issue. Does the latest nightly build |
I plan on opening an issue in our project to synch up with the change made in Quarkus Tools. |
Yes! |
Without the change that I did in IJ Quarkus, it should work too, so please test if highlight in microprofile-config.properties is working for you. |
It seems to be working the same as before. I captured some of the trace and see the request and response for
|
Nice! The thing which should change is how the textDocument/documentHighlight is registered. It is registered with registerCapability: You should see that in your LSP console:
all static capability should set to false. And after that you should see that:
Right? |
Yes, this looks the same. Thanks.
|
And if you do the same thing inside Java file, you should see some which returns nothing. If you do the same fix than I did for IJ Quarkus with languageId, this trace should disappear only for Java files. Right? |
Yes, that's exactly what I'm seeing. Thanks.
|
feat: Support documentSelector in registerCapability
Fixes #517