Fix typo and quote relativeFile (#1129)
"autodetect" is not accepted, while "autoDetect" is Without quotes, an error is thrown if relativeFile contains spaces
This commit is contained in:
parent
288a58d95e
commit
7bffafae0e
|
|
@ -36,7 +36,7 @@ Replace the contents of the template file with the following...
|
|||
{
|
||||
"label": "vsg-check",
|
||||
"type": "shell",
|
||||
"command": "vsg -f ${relativeFile}",
|
||||
"command": "vsg -f \"${relativeFile}\"",
|
||||
"problemMatcher": {
|
||||
"owner": "vsg",
|
||||
"fileLocation": ["autoDetect", "${workspaceFolder}"],
|
||||
|
|
@ -86,10 +86,10 @@ Replace the contents of the template file with the following...
|
|||
{
|
||||
"label": "vsg-fix",
|
||||
"type": "shell",
|
||||
"command": "vsg -f ${relativeFile} --fix",
|
||||
"command": "vsg -f \"${relativeFile}\" --fix",
|
||||
"problemMatcher": {
|
||||
"owner": "vsg",
|
||||
"fileLocation": ["autodetect", "${workspaceFolder}"],
|
||||
"fileLocation": ["autoDetect", "${workspaceFolder}"],
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^File: ([^\\s]*)\\s*$",
|
||||
|
|
|
|||
Loading…
Reference in New Issue