--- a/src/Tools/VSCode/extension/src/preview.ts Sat Jun 10 22:50:40 2017 +0200
+++ b/src/Tools/VSCode/extension/src/preview.ts Mon Jun 12 10:48:26 2017 +0200
@@ -130,7 +130,7 @@
if (document_uri) {
const editor =
window.visibleTextEditors.find(editor =>
- editor.document.uri.scheme === document_uri.scheme &&
+ library.is_file(editor.document.uri) &&
editor.document.uri.fsPath === document_uri.fsPath)
if (editor) window.showTextDocument(editor.document, editor.viewColumn)
else workspace.openTextDocument(document_uri).then(window.showTextDocument)