Skip to content

Please don't use Deprecated annotations for language server protocol deprecations #895

@DavidGregory084

Description

@DavidGregory084

I have noticed that it is common in LSP4J to use Deprecated annotations to communicate deprecations in the language server protocol itself.

Would it be possible to avoid this?

Most of the LSP deprecations have been in place for years at this point, and as the author of a language server I still have to handle e.g. rootUri in InitializeParams (deprecated since 2020) because a client may still send it.

It needlessly litters good code with deprecation warnings and it doesn't appear that the LSP protocol is actually going to follow through with removing any of these deprecated constructs, at least until there is a version 4.x of the protocol.

If you'd prefer to keep using deprecations, could they perhaps be used only for "response" type data, rather than properties of requests that a language server must handle in order to follow the protocol?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions