File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212 function onButtonClicked ( ) {
1313 let toolSelect = document . getElementById ( 'toolSelect' ) ;
14- let toolName = toolSelect . options [ toolSelect . selectedIndex ] . text ;
14+ let toolName = toolSelect . options [ toolSelect . selectedIndex ] . value ;
1515
1616 let selectedFile = document . getElementById ( 'fileInput' ) . files [ 0 ] ;
1717 readFile ( selectedFile ) . then ( ( fileContent ) => {
Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ export class ImportToolResultsWebview implements vscode.WebviewViewProvider {
8383 <p>Select tool:</p>
8484 <p>
8585 <select id="toolSelect">
86- <option value="bandit">bandit</option>
87- <option value="brakeman">brakeman</option>
88- <option value="checkov">checkov</option>
89- <option value="semgrep">semgrep</option>
86+ <option value="bandit">bandit (JSON) </option>
87+ <option value="brakeman">brakeman (JSON) </option>
88+ <option value="checkov">checkov (JSON) </option>
89+ <option value="semgrep">semgrep (JSON) </option>
9090 </select>
9191 </p>
9292 <p>Select file:</p>
You can’t perform that action at this time.
0 commit comments