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

Address usage of deprecated constructor 'VersionedTextDocumentIdentifier.<init>(Integer)' #1187

Open
1 task
dessina-devasia opened this issue Dec 16, 2024 · 1 comment · May be fixed by #1228
Open
1 task
Assignees
Milestone

Comments

@dessina-devasia
Copy link
Contributor

The deprecated constructor VersionedTextDocumentIdentifier.(Integer) is invoked in the following method:

  • TextEditConverter.convertToTextDocumentEdit(int)

This invocation needs to be addressed to ensure compatibility.

@anusreelakshmi934
Copy link
Contributor

anusreelakshmi934 commented Jan 10, 2025

The VersionedTextDocumentIdentifier() is marked as deprecated in version 2024.1.7. Although it is called within the TextEditConverter.convertToTextDocumentEdit(int) method, this method is not utilized anywhere in the code. So maybe this code can be cleaned up.

VersionedTextDocumentIdentifier.version changed from type int to Integer, thus can be null now. To resolve the deprication refer lsp4j/changelog documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment