Skip to content

Methods with any return type always match #25

@sgraband

Description

@sgraband

If a method returns any it will always match. If this is also true for other occurences like parameters needs to be investigated.

This was noticed, as Thenables are interpreted as any and all the methods that returned Thenables are flagged as matches.
Changing the return type of the methods to any also produced a match.

After a real quick test it seems like the return type and parameter types are often not parsed correctly, or even not parsed at all.

For example:
saveCustomDocument(document: T, cancellation: CancellationToken): Thenable<void>;
and
saveCustomDocument(document: number, cancellation: number): number;
matches.

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