Break out tracer-config.ts

This commit is contained in:
Robert Brignull 2020-08-24 12:53:09 +01:00
parent bd54c20d3e
commit 407ef0ac11
26 changed files with 953 additions and 489 deletions

View file

@ -5,6 +5,7 @@ import * as os from 'os';
import * as path from 'path';
import * as api from './api-client';
import { Language } from './languages';
import * as sharedEnv from './shared-environment';
/**
@ -433,3 +434,10 @@ export function getThreadsFlag(): string {
export function getCodeQLDatabasesDir(tempDir: string) {
return path.resolve(tempDir, 'codeql_databases');
}
/**
* Get the path where the CodeQL database for the given language lives.
*/
export function getCodeQLDatabasePath(tempDir: string, language: Language) {
return path.resolve(getCodeQLDatabasesDir(tempDir), language);
}