Skip to content

Address feedback for reset editor.lineNumbers after disabling zen mode#90910

Merged
isidorn merged 1 commit intomicrosoft:masterfrom
jeanp413:zen-mode-linenumbers-feedback
Feb 19, 2020
Merged

Address feedback for reset editor.lineNumbers after disabling zen mode#90910
isidorn merged 1 commit intomicrosoft:masterfrom
jeanp413:zen-mode-linenumbers-feedback

Conversation

@jeanp413
Copy link
Copy Markdown
Contributor

This PR addresses feedback given in #90822

@isidorn @jeanp413 not a big fan of how this ends up adding a new field to the layout.ts class which is only used by zen mode. Why can this not be added to the transitionDisposables set that is called each time zen mode changes? There should be a disposable for each editor that gets the line number updated, no?

@isidorn Not sure if I'm not understanding something but transitionDisposables just have an add and clear methods, and we need a way to keep track if an editor have already been added to avoid adding it multiple times so I just moved editorWidgetSet inside this.state.zenMode object and used the onDidDispose event to remove the disposed editors from the set.

Let me know if I'm missing something

@isidorn isidorn self-assigned this Feb 19, 2020
@isidorn
Copy link
Copy Markdown
Collaborator

isidorn commented Feb 19, 2020

Looks good, and behaves great. Thus merging in. Thanks for providing great PRs!
☀️

@isidorn isidorn merged commit 974d271 into microsoft:master Feb 19, 2020
@isidorn isidorn added this to the February 2020 milestone Feb 19, 2020
@isidorn isidorn added the workbench-zen Full screen 'Zen' view issues label Feb 19, 2020
@jeanp413 jeanp413 deleted the zen-mode-linenumbers-feedback branch February 19, 2020 15:01
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

workbench-zen Full screen 'Zen' view issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants