Skip to content

Typescript: Intellisense not working with union type #50153

@WilliamChelman

Description

@WilliamChelman
  • VSCode Version: 1.23.1
  • OS Version: Pop!_OS 17.10

Steps to Reproduce:

  1. Create a typescript file and try the following. When the type is "unioned" with undefined, the autocomplete cannot advise to use the enum anymore.
    test

  2. This is most annoying with situations like this, with optional parameters given to functions.
    test 1

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

javascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions