Skip to content

Strike out usage of deprecated symbols #309

@kpodsiad

Description

@kpodsiad

Is your feature request related to a problem? Please describe.

When I use deprecated method, in completions I see that it's deprecated, but after choosing completion, method is rendered as normal one.

image

Describe the solution you'd like

It should be visible that symbol is deprecated, for instance example from rust:
Screenshot 2022-10-18 at 18 10 36

There is DiagnosticTag for that purpose in diagnostic. I don't know if this can be achieved in other way than through diagnostics.

Describe alternatives you've considered

rely on scalac's deprecation and compilation warnings

  • metals can detect such diagnostics and add deprecated tag to them, will work only if one has this settings enabled on they own
  • metals can implicitly add this setting(?) - but then one will see such diagnostic even if they didn't enable deprecation flag

Additional context

No response

Search terms

deprecation diagnostics

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