summaryrefslogtreecommitdiff
path: root/packages/core/src
diff options
context:
space:
mode:
authorBilly Biggs <[email protected]>2025-06-22 16:17:05 -0700
committerGitHub <[email protected]>2025-06-22 16:17:05 -0700
commitc9bea8e6465e1a67879cde649c4125ea6b9007f5 (patch)
treee2d9015282b6d6af15ce1bb3286467ecc2abc44a /packages/core/src
parentb05b8673cd96b70d18cffb91cd347d176905dee6 (diff)
Plumb extension context filenames through for /memory refresh (#1312)
Diffstat (limited to 'packages/core/src')
-rw-r--r--packages/core/src/config/config.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts
index f6128e11..a9696206 100644
--- a/packages/core/src/config/config.ts
+++ b/packages/core/src/config/config.ts
@@ -118,6 +118,7 @@ export interface ConfigParameters {
bugCommand?: BugCommandSettings;
model: string;
disableDataCollection?: boolean;
+ extensionContextFilePaths?: string[];
}
export class Config {
@@ -155,6 +156,7 @@ export class Config {
private readonly bugCommand: BugCommandSettings | undefined;
private readonly model: string;
private readonly disableDataCollection: boolean;
+ private readonly extensionContextFilePaths: string[];
constructor(params: ConfigParameters) {
this.sessionId = params.sessionId;
@@ -196,6 +198,7 @@ export class Config {
this.model = params.model;
this.disableDataCollection =
params.telemetry?.disableDataCollection ?? true;
+ this.extensionContextFilePaths = params.extensionContextFilePaths ?? [];
if (params.contextFileName) {
setGeminiMdFilename(params.contextFileName);
@@ -387,6 +390,10 @@ export class Config {
return this.disableDataCollection;
}
+ getExtensionContextFilePaths(): string[] {
+ return this.extensionContextFilePaths;
+ }
+
async getGitService(): Promise<GitService> {
if (!this.gitService) {
this.gitService = new GitService(this.targetDir);