Add setting to make touchbar controls optional#70174
Merged
bpasero merged 6 commits intomicrosoft:masterfrom Aug 9, 2019
MarcusNoble:optional_touchbar_controls
Merged
Add setting to make touchbar controls optional#70174bpasero merged 6 commits intomicrosoft:masterfrom MarcusNoble:optional_touchbar_controls
bpasero merged 6 commits intomicrosoft:masterfrom
MarcusNoble:optional_touchbar_controls
Conversation
MarcusNoble
commented
Mar 10, 2019
src/vs/code/electron-main/window.ts
Outdated
| this.touchBarGroups.forEach((touchBarGroup, index) => { | ||
| const commands = groups[index]; | ||
| // Clear the segments first to prevent icon or label remaining | ||
| touchBarGroup.segments = []; |
Contributor
Author
There was a problem hiding this comment.
There seems to be a bug in electron where it doesn't correctly clear icons or labels when segments are replaced (See: electron/electron#17322). This gets around it by clearing out the segments then replacing them. No noticeable flicker when tested on my machine.
Contributor
Author
There was a problem hiding this comment.
This issue has been fixed in Electron (electron/electron#17336) but has yet to be released.
Contributor
Author
There was a problem hiding this comment.
This has now been released in https://github.com/electron/electron/releases/tag/v3.1.7
What is the process for updating dependencies of VSCode? Are there any guidelines that need to be followed?
Member
|
Thanks, merged with the settings name |
This was referenced Aug 9, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues: #63865, #38333, on2-dev/nasc-vscode-mac-touchbar#9
Adds a new setting that allows the user to selectively have controls not appear in the touchbar without having to completely disable it.
Example settings to hide all debug controls but keep navigation:
{ "keyboard.touchbar.ignoreActions": [ "workbench.action.debug.start", "workbench.action.debug.run", "workbench.action.debug.restart", "workbench.action.debug.stepOver", "workbench.action.debug.stepInto", "workbench.action.debug.stepOut", "workbench.action.debug.stop", "workbench.action.debug.continue", "workbench.action.debug.pause" ] }This also allows people to use plugins that make use of the touchbar without having to also have the nav and debug controls (that take up much of the space).
Screenshots
Default:

Debug controls disabled:

Debug controls disabled with nasc-vscode-mac-touchbar extension enabled:
