mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
Plumb extension context filenames through for /memory refresh (#1312)
This commit is contained in:
parent
b05b8673cd
commit
c9bea8e646
4 changed files with 39 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue