-
Notifications
You must be signed in to change notification settings - Fork 33
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
Moving stripe samples to it's own menu #262
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Just had a comment about putting the stripe samples link in the context menu.
src/stripeSamplesView.ts
Outdated
const findSamplesItem = new StripeTreeItem('Find code samples', { | ||
commandString: 'openSamples', | ||
iconPath: new ThemeIcon('code'), | ||
tooltip: 'Sample integrations built by Stripe', | ||
}); | ||
items.push(findSamplesItem); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh apologies if I wasn't clear! The Find code samples
link should be available when you right-click the Start with a Stripe Sample
link. It involves
- adding a
contextValue
to thesamplesItem
- registering
stripe.openSamples
in the package.json similar to howstripe.openDashboardEvent
is registered.
stripe.openDashboardEvent
should be a good example of how to do this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah had no idea this menu existed! I should right click more in VScode
…pe into ctrudeau-move-samples
Switched to context menu. Thanks for the suggestion, I had no idea this existed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Testing
Manually tested:
fixes #249
r? @vcheung-stripe