File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
vscode-plugin/src/responses Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export class TestsResponseHandler implements ResponseHandler<TestsResponse> {
69
69
// Show and log the results in UI
70
70
{
71
71
let firstTest = true ;
72
- const SarifReportFiles = [ ] ;
72
+ const SarifReportFiles : Uri [ ] = [ ] ;
73
73
for ( const test of testsSourceList ) {
74
74
const localPath = pathUtils . substituteLocalPath ( test . getFilepath ( ) ) ;
75
75
@@ -98,7 +98,10 @@ export class TestsResponseHandler implements ResponseHandler<TestsResponse> {
98
98
if ( ! sarifExt . isActive ) {
99
99
await sarifExt . activate ( ) ;
100
100
}
101
- sarifExt . exports . openLogs ( SarifReportFiles ) ;
101
+ // SARIF plugin doesn't monitor the file change event
102
+ // To refresh the report we close and open report
103
+ await sarifExt . exports . closeLogs ( SarifReportFiles )
104
+ . then ( sarifExt . exports . openLogs ( SarifReportFiles ) ) ;
102
105
}
103
106
}
104
107
}
You can’t perform that action at this time.
0 commit comments