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

Add deprecated tag from LSP 3.15 #53

Merged
merged 3 commits into from
Jan 1, 2022

Conversation

krassowski
Copy link
Contributor

@krassowski krassowski commented Dec 30, 2021

Closes #52; the end result with jupyter-lsp/jupyterlab-lsp#736 is:

Screenshot from 2021-12-30 16-27-32

For now I added the DiagnosticTag enum in plugin.py but once python-lsp/python-lsp-server#142 is merged and released we can use lsp.DiagnosticTag instead (or ideally try to import it and fallback to DiagnosticTag for a while until the new version of pylsp is widely adopted).

@krassowski
Copy link
Contributor Author

I see the test failures, will updated the PR.

@SylvainCorlay
Copy link
Member

Thanks @krassowski !
Would you like to see a release of pyls-memestra with this change or can we wait for a new version of python-lsp-server to come out before tagging a release?

@SylvainCorlay
Copy link
Member

It seems test will need to be updated.

@krassowski krassowski marked this pull request as draft December 31, 2021 14:03
@SylvainCorlay
Copy link
Member

cc @dharmaquark FYI

@krassowski
Copy link
Contributor Author

I think it will be safe and useful to include it in a release rather than wait for a new pylsp version. I will add a logic to check for relevant clientCapabilities to make sure it does not break older LSP clients.

@krassowski krassowski marked this pull request as ready for review December 31, 2021 14:23
@SylvainCorlay SylvainCorlay merged commit 1df3f91 into QuantStack:master Jan 1, 2022
@SylvainCorlay
Copy link
Member

Thanks, this is merged.

@krassowski krassowski deleted the add-deprecated-tag branch January 1, 2022 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use DiagnosticTag.Deprecated
2 participants