mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
resolve comment
This commit is contained in:
commit
e4e21bb6b7
93 changed files with 3360 additions and 1604 deletions
|
|
@ -698,14 +698,21 @@ export async function loadCliConfig(
|
|||
}
|
||||
|
||||
// Automatically load output-language.md if it exists
|
||||
let outputLanguageFilePath: string | undefined = path.join(
|
||||
const projectStorage = new Storage(cwd);
|
||||
const projectOutputLanguagePath = path.join(
|
||||
projectStorage.getQwenDir(),
|
||||
'output-language.md',
|
||||
);
|
||||
const globalOutputLanguagePath = path.join(
|
||||
Storage.getGlobalQwenDir(),
|
||||
'output-language.md',
|
||||
);
|
||||
if (fs.existsSync(outputLanguageFilePath)) {
|
||||
// output-language.md found - will be added to context files
|
||||
} else {
|
||||
outputLanguageFilePath = undefined;
|
||||
|
||||
let outputLanguageFilePath: string | undefined;
|
||||
if (fs.existsSync(projectOutputLanguagePath)) {
|
||||
outputLanguageFilePath = projectOutputLanguagePath;
|
||||
} else if (fs.existsSync(globalOutputLanguagePath)) {
|
||||
outputLanguageFilePath = globalOutputLanguagePath;
|
||||
}
|
||||
|
||||
const fileService = new FileDiscoveryService(cwd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue