Skip to content

Typescript: Intellisense not working with union type #24304

Closed
@mjbvz

Description

@mjbvz

From @WilliamChelman on May 19, 2018 10:23

  • 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

Copied from original issue: microsoft/vscode#50153

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions