Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the extension activation triggers to only include Stripe-rel… #219

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

gracegoo-stripe
Copy link
Contributor

…ated actions.

cc @richardg-stripe
r? @vcheung-stripe

Summary

This change is in response to #187 and will only trigger the activation of the extension if the users opens up the extension panel or tries to run a stripe command.

This does prevent the pre-loading of the extension which could mean that users experience a slower response for their first Stripe command (but I haven't noticed this while testing). If we find that our activation is heavy enough to benefit from loading earlier, another alternative is to move all the prompt-producing checks out of the activation step. I think that would complicate things though so I'd rather give this a try first.

Testing

Moved my stripe installation to another folder the extension wouldn't be able to find.

  1. Verified that the installation pop-up does not show up when the workspace is first opened.
  2. Verified that the installation pop-up does show up when clicking the Stripe extension
  3. Verified that the pop-up shows up when directly picking a command from the command palette.

@gracegoo-stripe gracegoo-stripe merged commit 815b5e2 into master Apr 28, 2021
@gracegoo-stripe gracegoo-stripe deleted the gracegoo-activation-event branch April 28, 2021 18:03
gracegoo-stripe added a commit that referenced this pull request Apr 30, 2021
…ripe-related actions. (#219)"

This reverts commit 815b5e2.

See this comment change for more details: 815b5e2#commitcomment-50155816
gracegoo-stripe added a commit that referenced this pull request Apr 30, 2021
…ripe-related actions. (#219)" (#221)

This reverts commit 815b5e2.

See this comment change for more details: 815b5e2#commitcomment-50155816
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants