<ul dir="auto">
<li>VSCode Version: 1.1.1-insiders</li>
<li>OS Version: Win10</li>
</ul>
<p dir="auto">I know window.visibleEditors is supposed to contain actual text editors but it is not possible to tell at the moment if a VirtualDocument (ie a htmlContentProvider) is in view.</p>
<p dir="auto">The scenario I would need this for is for detecting if a Virtual Document has focus when a command is triggered. If there is another work around for this please let me know.</p>
<p dir="auto">Thanks 😄</p>
<p dir="auto">I have a use case where I would like to be able to get a list of all the open editors (basically exactly what is shown here).</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5217568/20104763/68b379fa-a58c-11e6-8f48-185e5ae47060.png"><img width="222" alt="loginstructions_ts_-_vs-apex-debug" src="https://cloud.githubusercontent.com/assets/5217568/20104763/68b379fa-a58c-11e6-8f48-185e5ae47060.png" style="max-width: 100%;"></a></p>
<p dir="auto">I understand that Editors are disposed but I just need a list of filenames.</p>
<p dir="auto">Something like: <code class="notranslate">workspace.openDocuments:Array&lt;TextDocument&gt;</code> or even just <code class="notranslate">workspace.openFiles:Array&lt;string&gt;</code>.</p>
<p dir="auto">Long term, it might be nice to have API access to operate on this list (EG: sort open editors pane by last opened, name, etc).</p>