// Available variables which can be used inside of strings. // ${workspaceRoot}: the root folder of the team // ${file}: the current opened file // ${fileBasename}: the current opened file's basename // ${fileDirname}: the current opened file's dirname // ${fileExtname}: the current opened file's extension // ${cwd}: the current working directory of the spawned process { "version": "2.0.0", "command": "cargo", "tasks": [ { "label": "build", "type": "shell", "args": [ "build", "-v" ], "problemMatcher": [ { "owner": "rust", "fileLocation": [ "relative", "${workspaceRoot}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7 } } ], "group": "build" }, { "label": "clean", "type": "shell", "args": [ "clean" ], "problemMatcher": [] }, { "label": "run", "type": "shell", "args": [ "run", "-v" ], "problemMatcher": [ { "owner": "rust", "fileLocation": [ "relative", "${workspaceRoot}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7 } } ], "group": "build" }, { "label": "test", "type": "shell", "args": [ "test" ], "problemMatcher": [ { "owner": "rust", "fileLocation": [ "relative", "${workspaceRoot}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7 } }, { "owner": "rust", "fileLocation": [ "relative", "${workspaceRoot}" ], "severity": "error", "pattern": { "regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$", "message": 1, "file": 2, "line": 3 } } ], "group": "test" }, { "label": "bench", "type": "shell", "args": [ "bench" ], "problemMatcher": [ { "owner": "rust", "fileLocation": [ "relative", "${workspaceRoot}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7 } }, { "owner": "rust", "fileLocation": [ "relative", "${workspaceRoot}" ], "severity": "error", "pattern": { "regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$", "message": 1, "file": 2, "line": 3 } } ], "group": "test" } ] }