Skip to content
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

plugin: support deprecated code completion items #8517

Merged

Conversation

esterw1109
Copy link
Contributor

@esterw1109 esterw1109 commented Sep 17, 2020

Issue-8310: Deprecated code completions crash

Signed-off-by: Esther Perelman [email protected]

What it does

Fixes #8310
Fixes #8475

How to test

Steps to reproduce on #8310

Review checklist

Reminder for reviewers

Issue-8310: Deprecated code completions crash

Signed-off-by: Esther Perelman <[email protected]>
@shahar-h
Copy link
Contributor

I can confirm that #8475 is resolved with this fix.

@esterw1109 esterw1109 mentioned this pull request Sep 17, 2020
1 task
@vince-fugnitto vince-fugnitto added bug bugs found in the application builtins Issues related to VS Code builtin extensions vscode issues related to VSCode compatibility labels Sep 17, 2020
@vince-fugnitto vince-fugnitto changed the title Issue-8310 plugin: support deprecated code completion items Sep 17, 2020
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

The changes look good to me 👍

I confirmed that the vscode-builtin-css-language-features extension works correctly
(provides auto-completion).

@amiramw
Copy link
Member

amiramw commented Sep 17, 2020

#8310 with this change display code completion which didn't happen before.

However it doesn't show any indication for the deprecated one:
image

While in vscode it showed:
image

@shahar-h @vince-fugnitto, did you get the same behavior in your tests?

If so do you think this gap should be part of this PR or a separate issue?

@shahar-h
Copy link
Contributor

It's strange, I couldn't find any deprecated completion items in css.
However, I noticed that in your sample repo you use deprecated property in completion item, which is deprecated in favor of tags, see: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_completion.

Try to use tags instead, and in addition maybe also deprecated property should be supported in CompletionItem.

@amiramw
Copy link
Member

amiramw commented Sep 18, 2020

Also for tags: [1] (1 is deprecated) I don't get any indication in the UI.

Copy link
Member

@amiramw amiramw left a comment

Choose a reason for hiding this comment

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

Approved,
@esterw1109 please open another issue for the UI indication

@danidoedel
Copy link

When will this PR be merged? This bug bothers me quite some time already and I can't wait to see it fixed 😁

@amiramw amiramw merged commit c35fcb9 into eclipse-theia:master Sep 23, 2020
@EstherPerelman
Copy link
Contributor

Approved,
@esterw1109 please open another issue for the UI indication

Opened #8552

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application builtins Issues related to VS Code builtin extensions vscode issues related to VSCode compatibility
Projects
None yet
6 participants