Rename GitHubDatabaseModule to GitHubDatabasesModule
This commit is contained in:
@@ -27,7 +27,7 @@ import {
|
|||||||
} from "./updates";
|
} from "./updates";
|
||||||
import { Octokit } from "@octokit/rest";
|
import { Octokit } from "@octokit/rest";
|
||||||
|
|
||||||
export class GitHubDatabaseModule extends DisposableObject {
|
export class GitHubDatabasesModule extends DisposableObject {
|
||||||
private readonly config: GitHubDatabaseConfig;
|
private readonly config: GitHubDatabaseConfig;
|
||||||
|
|
||||||
private constructor(
|
private constructor(
|
||||||
@@ -46,17 +46,17 @@ export class GitHubDatabaseModule extends DisposableObject {
|
|||||||
databaseManager: DatabaseManager,
|
databaseManager: DatabaseManager,
|
||||||
databaseStoragePath: string,
|
databaseStoragePath: string,
|
||||||
cliServer: CodeQLCliServer,
|
cliServer: CodeQLCliServer,
|
||||||
): Promise<GitHubDatabaseModule> {
|
): Promise<GitHubDatabasesModule> {
|
||||||
const githubDatabaseModule = new GitHubDatabaseModule(
|
const githubDatabasesModule = new GitHubDatabasesModule(
|
||||||
app,
|
app,
|
||||||
databaseManager,
|
databaseManager,
|
||||||
databaseStoragePath,
|
databaseStoragePath,
|
||||||
cliServer,
|
cliServer,
|
||||||
);
|
);
|
||||||
app.subscriptions.push(githubDatabaseModule);
|
app.subscriptions.push(githubDatabasesModule);
|
||||||
|
|
||||||
await githubDatabaseModule.initialize();
|
await githubDatabasesModule.initialize();
|
||||||
return githubDatabaseModule;
|
return githubDatabasesModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async initialize(): Promise<void> {
|
private async initialize(): Promise<void> {
|
||||||
@@ -1 +1 @@
|
|||||||
export * from "./github-database-module";
|
export * from "./github-databases-module";
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ import { QueriesModule } from "./queries-panel/queries-module";
|
|||||||
import { OpenReferencedFileCodeLensProvider } from "./local-queries/open-referenced-file-code-lens-provider";
|
import { OpenReferencedFileCodeLensProvider } from "./local-queries/open-referenced-file-code-lens-provider";
|
||||||
import { LanguageContextStore } from "./language-context-store";
|
import { LanguageContextStore } from "./language-context-store";
|
||||||
import { LanguageSelectionPanel } from "./language-selection-panel/language-selection-panel";
|
import { LanguageSelectionPanel } from "./language-selection-panel/language-selection-panel";
|
||||||
import { GitHubDatabaseModule } from "./databases/github-databases";
|
import { GitHubDatabasesModule } from "./databases/github-databases";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* extension.ts
|
* extension.ts
|
||||||
@@ -871,7 +871,7 @@ async function activateWithInstalledDistribution(
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
await GitHubDatabaseModule.initialize(
|
await GitHubDatabasesModule.initialize(
|
||||||
app,
|
app,
|
||||||
dbm,
|
dbm,
|
||||||
getContextStoragePath(ctx),
|
getContextStoragePath(ctx),
|
||||||
|
|||||||
Reference in New Issue
Block a user