Skip to content

await template is not ideal #124

@teidesu

Description

@teidesu

few issues with the .await expression i found immediately:

  • it doesn't work inside awaited expressions. this is intended looking at the code, but this means i can't do this:
const foo = await getFoo(getBaz().await<tab>)
  • it doesn't wrap the awaited expression in parens. i.e.:
const foo = getFoo().await|<tab>

becomes

const foo = await getFoo()|

and i can't chain anything to that awaited value (e.g. (await getFoo()).bar bc it would chain on the getFoo() call instead of the actual awaited value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions