Skip to content

[completions] Down-rank deprecated symbols #2654

@AlexWaygood

Description

@AlexWaygood

Here are the completions currently offered if you type from abc import abstract<CURSOR>:

Image

But I don't want to import abstractclassmethod -- it's deprecated! And it should be easy for our completions machinery to detect that, since it has the @deprecated decorator on its typeshed definition. It seems wrong for the deprecated symbol (abc.abstractclassmethod) to appear higher in the list of completions suggestions than its nondeprecated replacement (abstractmethod).

Metadata

Metadata

Assignees

No one assigned

    Labels

    completionsBugs or features relating to autocomplete suggestionsserverRelated to the LSP server

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions