more robust (see https://code.visualstudio.com/docs/extensionAPI/document-selectors);
authorwenzelm
Wed, 21 Nov 2018 15:19:11 +0100
changeset 69322 ce6d43af5bcb
parent 69321 42b91ee343ee
child 69323 7698ad5d7036
more robust (see https://code.visualstudio.com/docs/extensionAPI/document-selectors);
src/Tools/VSCode/extension/src/extension.ts
--- a/src/Tools/VSCode/extension/src/extension.ts	Wed Nov 21 14:45:24 2018 +0100
+++ b/src/Tools/VSCode/extension/src/extension.ts	Wed Nov 21 15:19:11 2018 +0100
@@ -41,7 +41,11 @@
         { command: isabelle_tool,
           args: ["vscode_server"].concat(standard_args, isabelle_args) };
     const language_client_options: LanguageClientOptions = {
-      documentSelector: ["isabelle", "isabelle-ml", "bibtex"]
+      documentSelector: [
+        { language: "isabelle", scheme: "file" },
+        { language: "isabelle-ml", scheme: "file" },
+        { language: "bibtex", scheme: "file" }
+      ]
     };
 
     const language_client =