Skip to content

VSCode variables aren't correctly substituted #53

@jgeudens

Description

@jgeudens

Hi,

I'm trying to use the extension (extension v1.0.4 in VSC v1.118.1), but I have some difficulties when adding extra arguments for cppcheck.

I want the pass an add-on argument, but the normal variable substitution in the workspace file isn't working. It does work when I use an absolute path.

"cppcheck-official.enable": true,
"cppcheck-official.minSeverity": "info",
//"cppcheck-official.arguments": "--addon=C:/Projects/Example_CMake/Core/.vscode/custom_rules.json",
"cppcheck-official.arguments": "--addon=${workspaceFolder}/.vscode/custom_rules.json",

It seems that this is related to

var args = config.get<string>("cppcheck-official.arguments", "");

The ${xxx} syntax seems to be used for running commands instead of the normal VSC variable substitution.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions