Skip to content

Property initializer should get the same completion as property assignment #15361

Closed
@mjbvz

Description

@mjbvz

From @unional on April 22, 2017 9:12

  • VSCode Version: 1.11.2
  • OS Version: OSX
abstract class Foo {
  options: {
    x: string
  }
}

class Koo extends Foo { // already know options is missing x
  options = {
    // should get `x` as property
  }
  do() {
    this.options = {
      // does recognize `x` as property
    }
  }
}

image

image

Copied from original issue: microsoft/vscode#25181

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already createdVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions