File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
integration/vscode/ada/src Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -556,6 +556,16 @@ async function openSARIFViewerIfNeeded(task: vscode.Task) {
556556 ? vscode . Uri . file ( outputFilePath )
557557 : vscode . Uri . joinPath ( cwdURI , outputFilePath ) ;
558558
559+ /**
560+ * If we open a SARIF report that was already open, the
561+ * SARIF Viewer extension does not refresh the
562+ * contents. It is necessary to close the report and
563+ * reopen it.
564+ */
565+ // eslint-disable-next-line max-len
566+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
567+ await sarifExtAPI . closeLogs ( [ sarifFileURI ] ) ;
568+
559569 // eslint-disable-next-line max-len
560570 // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
561571 await sarifExtAPI . openLogs ( [ sarifFileURI ] ) ;
You can’t perform that action at this time.
0 commit comments