Skip to content

[JavaScript/TypeScript Language Hints] Hide default Object properties/methods until manually typed just like in Rust. #63150

@FrameMuse

Description

@FrameMuse

Right now if I create a class with static methods/properties or via namespace, it's very hard to distinguish between default and custom ones visually.

Image

I propose to hide those default methods, they are not useful to know for beginners, while for experienced ones, it's noisy. Leaving only defined in classes/namespaces.
I'm looking from Rust lang analyzer extension perspective, which does exactly that, and I feel like it's much more convenient, especially if there will be more properties/methods in future.
If the property is fully typed correctly, e.g. Test.call, the hint will appear just like typing Test.constructor, it's not appearing, but when typed - the hint appears with Function.

This can be an option to enable/disable.

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