Skip to content

Emit deprecated tag for deprecated LSP diagnostics #2885

@yangdanny97

Description

@yangdanny97

Describe the Bug

For the deprecated error code, we should emit LSP diagnostics w/ the deprecated tag: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#diagnosticTag

That way, the editor can render a strikethrough over the function name. We should be careful what position we emit the diagnostic in. I think the strikethrough should only cover the function name, not the arguments.

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerslanguage-serverIssues specific to our IDE integration rather than type checking

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions