export async function openReportByPath()

in vscode/qodana/src/core/report/index.ts [29:41]


export async function openReportByPath(path: string, reportId: string, confirmation: boolean, context: vscode.ExtensionContext) {
    let openedReport = context.workspaceState.get(WS_OPENED_REPORT);
    if (!openedReport || openedReport !== path) {
        // no report opened or different report opened
        if (confirmation && openedReport) {
            let answer = await vscode.window.showInformationMessage(NEW_REPORT_AVAILABLE, YES, NO);
            if (answer !== YES) {
                return;
            }
        }
        Events.instance.fireReportFile({ reportFile: path, reportId: reportId });
    }
}