Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in synchronization of selection in the 'Review tool main view' and the editor #12

Open
chreex opened this issue Jan 22, 2015 · 1 comment

Comments

@chreex
Copy link
Contributor

chreex commented Jan 22, 2015

A file may appear in multiple source sets.

When the editor gets focus, the first hit is selected in the 'Review tool main view', even if the first hit is in a collapsed source set. This is acceptable if all the source sets are collapsed or the edited file is present only in a collapsed source set, but if only one source set is open (i. e. is in a non-collapsed state), containing the file, the file should be selected in that very source set.

There is a workaround indeed: hiding the unneeded source sets.

@agostoni
Copy link
Contributor

In mentioned case, all occurrences of the file are selected, not only the first one (also in the already opened source sets, but probably the scroll position is set to first hit ).

The requirement could be modified this way:

  • A collapsed set must be opened, if and only if it contains the file, and none of opened source sets contain the file (if this is true for more collapsed sets, all of them must be opened).
  • The file must be selected in all opened source set. The first hit should be visible (set scroll position).

I feel the original solution is cleaner, simpler, and less error-prone, so I'm not sure, that this feature worth the effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants