Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Re-implements hiding behavior based on promise to fix timing error. #1396

Merged
merged 5 commits into from
Mar 25, 2022

Conversation

joaotmartins
Copy link
Contributor

Description of the Change

Re-implemented hiding code to perform conditional hiding as a callback of treeViewOpenPromise. This fixes an error where we might have attempted to hide the pane before it existed (usually only happened when Atom was started up with a clean profile).

Alternate Designs

None.

Benefits

Tree-view hiding works even when there are a few timing differences in the pane initialization.

Possible Drawbacks

None.

Applicable Issues

See comments to #1389

@joaotmartins joaotmartins changed the title Re-implements hinding behavior based on promise to fix timing error. Re-implements hiding behavior based on promise to fix timing error. Nov 4, 2021
@joaotmartins
Copy link
Contributor Author

Fixes the original implementation for #1370 and #1375 .

@pokono
Copy link

pokono commented Feb 9, 2022

Any progress on this? 😭

@darangi darangi merged commit 5973813 into atom:master Mar 25, 2022
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.

None yet

4 participants