Skip to content

Toggle Tab Visibility#37735

Merged
bpasero merged 5 commits intomicrosoft:masterfrom
maxfurman:toggle-tabs
Nov 8, 2017
Merged

Toggle Tab Visibility#37735
bpasero merged 5 commits intomicrosoft:masterfrom
maxfurman:toggle-tabs

Conversation

@maxfurman
Copy link
Contributor

Fixes #30314
Toggle the visibility of editor tabs, with keyboard shortcut ctrl-cmd-W

@msftclas
Copy link

msftclas commented Nov 6, 2017

CLA assistant check
All CLA requirements met.

@bpasero bpasero self-assigned this Nov 7, 2017
@bpasero bpasero added this to the On Deck milestone Nov 7, 2017
const visibility = this.configurationService.getValue<string>(ToggleTabsVisibilityAction.tabsVisibleKey);
const newVisibilityValue = !visibility;

return this.configurationService.updateValue(ToggleTabsVisibilityAction.tabsVisibleKey, newVisibilityValue, ConfigurationTarget.USER);
Copy link
Member

Choose a reason for hiding this comment

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

@sandy081 how is the state of things here, shouldn't we stay away from setting an explicit Configuration.TARGET and rather let the service decide where to update the value based on where it is defined?

@maxfurman the issue here is that this setting could be defined on a workspace level and then writing it back to user level would not cause any visual change.

Copy link
Member

Choose a reason for hiding this comment

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

@bpasero Yes, Do not use the target, if the action is intended to change the current effective value. Current state is that all existing actions are still using the target (debt item). Make sure new ones do not cause the debt.

Copy link
Member

Choose a reason for hiding this comment

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

@maxfurman can you make that change to not set the target?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem. Simply removing the third argument to updateValue will do the trick, correct?

@bpasero
Copy link
Member

bpasero commented Nov 8, 2017

Thanks 👍

@bpasero bpasero merged commit 2dc6c08 into microsoft:master Nov 8, 2017
@bpasero bpasero modified the milestones: On Deck, November 2017 Nov 8, 2017
@SidIcarus
Copy link

Thanks @maxfurman !
:D

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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.

Add toggleTabsVisibility to keybinding actions

5 participants