Skip to content

Refactor activate() to use await #2906

Description

@datho7561

Refactor the activate function (main entry point to extension) to use await instead of promise chaining and promise constructors.

Why?

  • The async logic is currently really hard to read
  • The function is > 300 lines of code, and using async could make it shorter
  • The function contains async promise executors, which are considered bad since they make error handling hard

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions