<p dir="auto">Atom 0.196.0<br>
Mac OS X 10.10.3</p>
<p dir="auto">"Reveal in tree view" does not always put tree view selection on revealed file.  It seems to depend on the previous selection/collapse state of the tree view.  Here's an example of a repro:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/80917/7506811/06d06e0c-f41a-11e4-861f-22bfcaa77251.gif"><img src="https://cloud.githubusercontent.com/assets/80917/7506811/06d06e0c-f41a-11e4-861f-22bfcaa77251.gif" alt="treeview" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Note that if you just collapse the tree and then reveal the file, it works fine, but if you change the selection to the other directory, then collapse the tree, then choosing "reveal in treeview" expands the tree to reveal the correct file, but the selection stays on the root directory.</p>
<h3 dir="auto">Repro steps:</h3>
<ol dir="auto">
<li>Open the <code class="notranslate">image-view</code> repository in safe mode <code class="notranslate">atom --safe</code></li>
<li>Open the <code class="notranslate">spec/fixtures</code> folder</li>
<li>Open <code class="notranslate">binary-file.png</code></li>
<li>Collapse the <code class="notranslate">spec</code> folder</li>
<li>Collapse the root folder (<code class="notranslate">image-view</code>)</li>
<li>Right click on the image and select <code class="notranslate">Reveal in Tree View</code> from the context menu</li>
</ol>
<p dir="auto"><strong>Expected:</strong><br>
<code class="notranslate">binary-file.png</code> to be highlighted because it was revealed</p>
<p dir="auto"><strong>Actual:</strong><br>
The <code class="notranslate">spec</code> folder is expanded but the file is not selected</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1058982/19150598/f7c24948-8bc7-11e6-838e-fba97de42127.gif"><img src="https://cloud.githubusercontent.com/assets/1058982/19150598/f7c24948-8bc7-11e6-838e-fba97de42127.gif" alt="reveal root" data-animated-image="" style="max-width: 100%;"></a></p>
<hr>
<p dir="auto">Repro Steps:</p>
<ol dir="auto">
<li>Open file inside a folder that visible in the tree view</li>
<li>Collapse folder with file</li>
<li>In file, right click and select Reveal in Tree View</li>
</ol>
<p dir="auto">The desired behavior is that the file is highlighted and not the parent folder. The desired behavior happens if the folder is expanded.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1620641/3587219/1f4d0fba-0c37-11e4-9416-89d406ae7046.Gif"><img src="https://cloud.githubusercontent.com/assets/1620641/3587219/1f4d0fba-0c37-11e4-9416-89d406ae7046.Gif" alt="croppercapture 1" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Windows 7, Atom Version 0.115.0</p>