private initReportSubscription()

in vscode/qodana/src/core/localRun/index.ts [15:28]


    private initReportSubscription() {
        Events.instance.onReportFile((e) => {
            if (e.reportId === LOCAL_REPORT && e.reportFile) {
                if (Array.from(this.localReports).find(report => report.path === e.reportFile)) {
                    return;
                }
                let time = new Date(Date.now());
                this.localReports.add({
                    path: e.reportFile,
                    label: `${time.toLocaleDateString()} ${time.toLocaleTimeString()}`
                });
            }
        });
    }