export async function sendReportToLanguageClient()

in vscode/qodana/src/core/client/activities.ts [109:129]


export async function sendReportToLanguageClient(client: LanguageClient, context: vscode.ExtensionContext, reportPath: string) {
    if (!context.workspaceState.get(WS_COMPUTED_PREFIX)) {
        let computed = await sarif.findPrefix(reportPath);
        if (computed) {
            await context.workspaceState.update(WS_COMPUTED_PREFIX, computed);
        }
    }
    await announceWorkspaceFolder(client, context);
    let sarifParams: SetSarifFileParams = {
        path: reportPath,
        showBaselineIssues: context.workspaceState.get<boolean>(WS_BASELINE_ISSUES, false)
    };
    await client.sendRequest('setSarifFile', sarifParams);
    if (IS_DEBUG) {
        vscode.window.showInformationMessage(CLOUD_REPORT_LOADED, SHOW_PROBLEMS).then((value) => {
            if (value === SHOW_PROBLEMS) {
                vscode.commands.executeCommand('workbench.action.problems.focus');
            }
        });
    }
}