]> git.lizzy.rs Git - rust.git/commitdiff
ProblemMatcher auto detects relative/absolute paths and matches VSCode LSP's owner...
authorJames Leitch <rickvanprim@gmail.com>
Thu, 23 Jul 2020 05:32:54 +0000 (22:32 -0700)
committerJames Leitch <rickvanprim@gmail.com>
Thu, 23 Jul 2020 05:34:47 +0000 (22:34 -0700)
editors/code/package.json
editors/code/src/client.ts

index aac4ba94f270830f1cbabc2200147fd3cc4f9fb4..448e2269ff1b2f3b961e489eb162ebcce255547d 100644 (file)
         "problemMatchers": [
             {
                 "name": "rustc",
+                "owner": "rustc",
+                "source": "rustc",
                 "fileLocation": [
-                    "relative",
+                    "autoDetect",
                     "${workspaceRoot}"
                 ],
                 "pattern": "$rustc"
             },
             {
                 "name": "rustc-json",
+                "owner": "rustc",
+                "source": "rustc",
                 "fileLocation": [
-                    "relative",
+                    "autoDetect",
                     "${workspaceRoot}"
                 ],
                 "pattern": "$rustc-json"
             },
             {
                 "name": "rustc-watch",
+                "owner": "rustc",
+                "source": "rustc",
                 "fileLocation": [
-                    "relative",
+                    "autoDetect",
                     "${workspaceRoot}"
                 ],
                 "background": {
index 41ffac7b347de8a90d648ae8ec917c16aaebb569..18948cb3c4c4ba4ce0531776a74804e46ac50228 100644 (file)
@@ -41,6 +41,7 @@ export function createClient(serverPath: string, cwd: string): lc.LanguageClient
     const clientOptions: lc.LanguageClientOptions = {
         documentSelector: [{ scheme: 'file', language: 'rust' }],
         initializationOptions: vscode.workspace.getConfiguration("rust-analyzer"),
+        diagnosticCollectionName: "rustc",
         traceOutputChannel,
         middleware: {
             // Workaround for https://github.com/microsoft/vscode-languageserver-node/issues/576