作者:孤独的李新_780 | 来源:互联网 | 2023-05-18 12:37
Itriedtoimplementthepatternmatcherfortslintbutitisgoinghaywire.Iamcertainthatregex
I tried to implement the pattern matcher for tslint but it is going haywire. I am certain that regex is specified correctly, yet VSC keeps highlighting incorrect files. Here is my tasks.json file:
我试图为tslint实现模式匹配器,但它会变得混乱。我确定正确指定了正则表达式,但VSC一直在突出显示不正确的文件。这是我的tasks.json文件:
{
"version": "0.1.0",
"command": "gulp",
"isShellCommand": true,
"args": [
],
"tasks": [
{
"taskName": "build",
"args": [],
"isBuildCommand": true,
"problemMatcher": [
{
"owner": "gulp",
"fileLocation": ["absolute"],
"pattern": {
"regexp": "^\\[[^>]* > ([^(]*)\\((\\d*),(\\d*)\\): (error) (.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "gulp",
"fileLocation": ["relative", "${workspaceRoot}/src/"],
"pattern": {
"regexp": "^\\([a-z\\-]*\\) ([^\\[]*)\\[([\\d]*), ([\\d]*)\\]: (.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 1,
"message": 4
}
}
]
}
]
}
2 个解决方案