mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
initialize FileDiscoveryService once (#1029)
This commit is contained in:
parent
209381f06f
commit
8eb505fbba
7 changed files with 42 additions and 12 deletions
|
|
@ -86,6 +86,7 @@ export interface ConfigParameters {
|
|||
checkpoint?: boolean;
|
||||
proxy?: string;
|
||||
cwd: string;
|
||||
fileDiscoveryService?: FileDiscoveryService;
|
||||
}
|
||||
|
||||
export class Config {
|
||||
|
|
@ -152,6 +153,7 @@ export class Config {
|
|||
this.checkpoint = params.checkpoint ?? false;
|
||||
this.proxy = params.proxy;
|
||||
this.cwd = params.cwd ?? process.cwd();
|
||||
this.fileDiscoveryService = params.fileDiscoveryService ?? null;
|
||||
|
||||
if (params.contextFileName) {
|
||||
setGeminiMdFilename(params.contextFileName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue