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:
Matteo Delton 2024-02-21 13:42:49 +01:00 committed by GitHub
parent 288a58d95e
commit 7bffafae0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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*$",