Skip to content

Autocompletion in Classes when Implementing an Interface after Initial Fields  #30290

@hediet

Description

@hediet

TypeScript Version: 3.3.1

Search Terms: Refactoring, Interface Implementation Autocompletion

Code

interface X {
    bla: string;
}
class Y implements X {
    // autocomplete here (1)
	private readonly blub = "";
    // autocomplete here (2)
}

Expected behavior:
When autocompleting at 1 in vscode, is suggests the member foo.
When autocompleting at 2 in vscode, is suggests the member foo.

Actual behavior:
When autocompleting at 1 in vscode, is suggests the member foo.
When autocompleting at 2 in vscode, is suggests nothing.

image

image

Playground link

It works however, when blub is not private.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions