]> git.lizzy.rs Git - rust.git/blobdiff - .vscode/tasks.json
Rollup merge of #104211 - lnicola:rust-analyzer-2022-11-09, r=lnicola
[rust.git] / .vscode / tasks.json
index 045cee3266a278b62b0a22fe21452d00cd064e9c..a25dff19e4155d6081665ae3636d609b6bc80863 100644 (file)
@@ -4,44 +4,64 @@
   "version": "2.0.0",
   "tasks": [
     {
+      "label": "Build Extension in Background",
+      "group": "build",
       "type": "npm",
-      "script": "compile",
+      "script": "watch",
+      "path": "editors/code/",
+      "problemMatcher": {
+        "base": "$tsc-watch",
+        "fileLocation": ["relative", "${workspaceFolder}/editors/code/"]
+      },
+      "isBackground": true,
+    },
+    {
       "label": "Build Extension",
+      "group": "build",
+      "type": "npm",
+      "script": "build",
+      "path": "editors/code/",
       "problemMatcher": {
-        "owner": "typescript",
-        "pattern": "$tsc",
-        "fileLocation": ["relative", "${workspaceRoot}/editors/code"]
+        "base": "$tsc",
+        "fileLocation": ["relative", "${workspaceFolder}/editors/code/"]
       },
-      "path": "editors/code/"
     },
     {
-      "label": "Build Lsp",
+      "label": "Build Server",
+      "group": "build",
       "type": "shell",
-      "command": "cargo build",
+      "command": "cargo build --package rust-analyzer",
+      "problemMatcher": "$rustc"
+    },
+    {
+      "label": "Build Server (Release)",
+      "group": "build",
+      "type": "shell",
+      "command": "cargo build --release --package rust-analyzer",
+      "problemMatcher": "$rustc"
+    },
+    {
+      "label": "Pretest",
+      "group": "build",
+      "isBackground": false,
+      "type": "npm",
+      "script": "pretest",
+      "path": "editors/code/",
       "problemMatcher": {
-        "owner": "rust",
-        "fileLocation": ["relative", "${workspaceRoot}"],
-        "pattern": [
-          {
-            "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
-            "severity": 1,
-            "code": 2,
-            "message": 3
-          },
-          {
-            "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
-            "file": 1,
-            "line": 2,
-            "column": 3
-          }
-        ]
+        "base": "$tsc",
+        "fileLocation": ["relative", "${workspaceFolder}/editors/code/"]
       }
     },
+
     {
-      "label": "Build All",
-      "group": "build",
-      "dependsOn": ["Build Extension", "Build Lsp"],
-      "problemMatcher": []
+      "label": "Build Server and Extension",
+      "dependsOn": ["Build Server", "Build Extension"],
+      "problemMatcher": "$rustc"
+    },
+    {
+      "label": "Build Server (Release) and Extension",
+      "dependsOn": ["Build Server (Release)", "Build Extension"],
+      "problemMatcher": "$rustc"
     }
   ]
 }