"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"
}
]
}