Skip to content

Commit 5e95845

Browse files
committed
clarified some comments
1 parent 61b8745 commit 5e95845

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ export async function activate(context: vscode.ExtensionContext) {
6767
const diagnosticCollection = vscode.languages.createDiagnosticCollection("Cppcheck");
6868
context.subscriptions.push(diagnosticCollection);
6969

70-
// If an argument requires us to run any scripts we do it here
70+
// If an argument requires us to run a script we do it here
7171
const config = vscode.workspace.getConfiguration();
7272
const args = config.get<string>("cppcheck-official.arguments", "");
7373
if (args.includes('${')) {
7474
const scriptCommand = args.split("${")[1].split("}")[0];
7575
const scriptOutput = await runCommand(scriptCommand);
76-
// We expect the script output that is to be used as arguments will be wrapped with ${}
76+
// We expect that the script output that is to be used as arguments will be wrapped with ${}
7777
const scriptOutputTrimmed = scriptOutput.split("${")[1].split("}")[0];
7878
processedArgs = args.split("${")[0] + scriptOutputTrimmed + args.split("}")?.[1];
7979
} else {

0 commit comments

Comments
 (0)