Skip to content

async keyword missing from completion list when nested inside another function #25795

@AlCalzone

Description

@AlCalzone

TypeScript Version: 3.1.0-dev.20180717

Search Terms: async completion suggestion

When inside another function, the async keyword no longer appears in completion lists. This often happens when writing async tests using mocha. See the following screenshots for a demonstration.

Not nested, async is suggested:
async1
Nested, async is not suggested:
async2

Expected behavior:
async is suggested in both cases

Actual behavior:
It is not

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 issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions