From 7bffafae0e31fcaf709cbb6d355e237e233efdca Mon Sep 17 00:00:00 2001 From: Matteo Delton <50383865+MDXZ-delti@users.noreply.github.com> Date: Wed, 21 Feb 2024 13:42:49 +0100 Subject: [PATCH] Fix typo and quote relativeFile (#1129) "autodetect" is not accepted, while "autoDetect" is Without quotes, an error is thrown if relativeFile contains spaces --- docs/editor_integration/vscode.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/editor_integration/vscode.rst b/docs/editor_integration/vscode.rst index 11a83013..ea9767c7 100644 --- a/docs/editor_integration/vscode.rst +++ b/docs/editor_integration/vscode.rst @@ -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*$",