Compare commits

..

1 Commits

Author SHA1 Message Date
Michael Hohn
495b52661e add viewer configuration
Some checks failed
Run CLI tests / Find Nightly Release (push) Has been cancelled
Run CLI tests / Set Matrix for cli-test (push) Has been cancelled
Run CLI tests / CLI Test (push) Has been cancelled
Run CLI tests / Report failure on the default branch (push) Has been cancelled
Update Node version / Create PR (push) Has been cancelled
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
Bump CLI version / Build (push) Has been cancelled
Code Scanning - CodeQL / codeql (push) Has been cancelled
2025-08-19 11:24:15 -07:00
4 changed files with 1612 additions and 337 deletions

View File

@@ -48,7 +48,7 @@ const baseConfig = {
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/consistent-type-imports": "error",
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
// curly: ["error", "all"],
curly: ["error", "all"],
"escompat/no-regexp-lookbehind": "off",
"etc/no-implicit-any-catch": "error",
"filenames/match-regex": "off",

File diff suppressed because it is too large Load Diff

View File

@@ -15,28 +15,28 @@ export async function extractRawResults(
const bqrsInfo = await cliServer.bqrsInfo(filePath);
const resultSets = bqrsInfo["result-sets"];
if (resultSets.length === 0) {
if (resultSets.length < 1) {
throw new Error("No result sets found in results file.");
}
if (resultSets.length > 1) {
void logger.log(
"Multiple result sets found in results file. Using the first one.",
"Multiple result sets found in results file. Only one will be used.",
);
}
// Prefer `#select` result set; otherwise, use the first available set.
// Always prefer #select over any other result set. #select is usually the result the user
// wants to see since it contains the outer #select.
const schema =
resultSets.find((r) => r.name === SELECT_TABLE_NAME) ?? resultSets[0];
resultSets.find((resultSet) => resultSet.name === SELECT_TABLE_NAME) ??
resultSets[0];
const chunk = await cliServer.bqrsDecode(filePath, schema.name, {
pageSize: MAX_RAW_RESULTS,
});
const resultSet = bqrsToResultSet(schema, chunk);
return {
resultSet,
fileLinkPrefix,
sourceLocationPrefix,
capped: !!chunk.next,
};
const capped = !!chunk.next;
return { resultSet, fileLinkPrefix, sourceLocationPrefix, capped };
}

View File

@@ -20,7 +20,8 @@
"TZ": "UTC"
},
"github.copilot.advanced": {},
"github-enterprise.uri": "http://server:8080"
"github-enterprise.uri": "http://server:8080",
"sarif-viewer.connectToGithubCodeScanning": "off"
}
}