This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
"Files changed" review comment gutter decorations disappear when collapsing or expanding a file #2052
Open
Description
Prerequisites
- Have you tried to reproduce the problem in Safe Mode?
- Have you followed all applicable steps in the debugging guide?
- Have you checked the FAQs on the message board for common solutions?
- Have you checked that your issue isn't already filed?
Description
The comment decorations in the gutter vanish from the "Files changed" tab when you collapse or expand any of the files within it.
Steps to Reproduce
- Run the
GitHub: Open Issue or Pull Request
command from the command palette and enter the URLhttps://github.com/atom/github/pull/1882
. Click "Open". - Navigate to the "Files Changed" tab on the item that opens. Note the "comment" icon the gutter.
- Collapse the diff by clicking the down-arrow in the file header.
- Expand the diff again.
Expected behavior:
Comment decorations within the collapsed file should disappear when the file they're on is collapsed, and be restored to their original positions when the file is re-expanded.
Actual behavior:
The comment decorations vanish. Decorations on files after a collapsed or expanded one seem to jump around as well.
Reproduces how often:
100%
Versions
atom/[email protected]
Additional Information
Likely some markers getting messed up by the buffer changes made by expanding and collapsing. Maybe we could move the comment decoration markers to a MarkerLayer tracked by a PatchBuffer?