File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments