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

Don't require a reload for Share setting #186572

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

joyceerhl
Copy link
Contributor

Fixes #186300

@joyceerhl joyceerhl enabled auto-merge (squash) June 28, 2023 22:42
@joyceerhl joyceerhl self-assigned this Jun 28, 2023
@VSCodeTriageBot VSCodeTriageBot added this to the June 2023 milestone Jun 28, 2023
@joyceerhl joyceerhl merged commit e133f00 into main Jun 28, 2023
7 checks passed
@joyceerhl joyceerhl deleted the dev/joyceerhl/independent-spoonbill branch June 28, 2023 23:31
this.configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration(ShareWorkbenchContribution.SHARE_ENABLED_SETTING)) {
if (this.configurationService.getValue<boolean>(ShareWorkbenchContribution.SHARE_ENABLED_SETTING)) {
this.registerActions();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could lead to registering the actions multiple times. You might want to clear the disposable first. Your setting value's type won't be validated, I could change it from true to "abc" and hit this line

@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command center sharing
3 participants