tuned;
authorwenzelm
Mon, 12 Jun 2017 10:48:26 +0200
changeset 66064 5a00cec6bc82
parent 66063 a2e441805d6a
child 66065 1494f3aa8194
tuned;
src/Tools/VSCode/extension/src/preview.ts
--- 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)