-
Notifications
You must be signed in to change notification settings - Fork 93
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
Implement itemDefaults for completionList #1567
Conversation
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/services/XMLCompletions.java
Outdated
Show resolved
Hide resolved
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/services/XMLCompletions.java
Outdated
Show resolved
Hide resolved
Given the schema:
And the document: <?xml-model href="schema.rng"?>
<article>
|
</article> If I open completion at the <?xml-model href="schema.rng"?>
<article>
title
</article> |
It seems the |
@datho7561 Hmm it works on my end, do you have any settings set that might affect completion? |
I'll give it another try |
I know what it is, it's the binary. You will need to add |
5f03635
to
3bdf51c
Compare
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/utils/CompletionItemDefaultsUtils.java
Outdated
Show resolved
Hide resolved
3bdf51c
to
5c9ed94
Compare
@JessicaJHee do you see some improvement with lemminx maven with the dependency completion eclipse-lemminx/lemminx-maven#482 ? |
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/utils/CompletionItemDefaultsUtils.java
Outdated
Show resolved
Hide resolved
org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/utils/CompletionItemDefaultsUtils.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jessica He <[email protected]>
5c9ed94
to
a1c7d47
Compare
@angelozerr I do feel that it is faster, at least on the first completion. But it is hard to put into numbers since the improvements are purely on the client side. |
Yes sure I understand, I wanted just to have your feeling. Thanks for your feedback. |
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.
Looks good. Thanks, Jessica!
It works great on vscode. I cannot test with Eclipse IDE because it misses the capability eclipse/lsp4e#741 -( |
Once github actions will be finished,I'm OK to merge it. |
Thanks @JessicaJHee ! |
Fixes #1561
editRange
andinsertTextFormat
toitemDefaults
when supported