Skip to content

Overeager new method name completion in class #19965

@ghost

Description

May be a vscode issue, but putting it here first.

TypeScript Version: 2.7.0-dev.20171112

Code

class C {
    theBrownFoxJumpedOverTheLazyDog() {
    }
}

class D extends C {
    public /*here*/
}

Type tjl(.

Expected behavior:

Get what I typed: public tjl(.

Actual behavior:

Get public theBrownFoxJumpedOverTheLazyDog(.
This is a new identifier location so it's likely that the user wanted to write a new method instead of overriding an existing one.
Also, this only happens if the public keyword is present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions