mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Extensibility: Gemini.md files (#944)
This commit is contained in:
@@ -74,6 +74,22 @@ function loadExtensionsFromDir(dir: string): ExtensionConfig[] {
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (extensionConfig.contextFileName) {
|
||||
const contextFilePath = path.join(
|
||||
extensionDir,
|
||||
extensionConfig.contextFileName,
|
||||
);
|
||||
if (fs.existsSync(contextFilePath)) {
|
||||
extensionConfig.contextFileName = contextFilePath;
|
||||
}
|
||||
} else {
|
||||
const contextFilePath = path.join(extensionDir, 'gemini.md');
|
||||
if (fs.existsSync(contextFilePath)) {
|
||||
extensionConfig.contextFileName = contextFilePath;
|
||||
}
|
||||
}
|
||||
|
||||
extensions.push(extensionConfig);
|
||||
} catch (e) {
|
||||
console.error(
|
||||
|
||||
Reference in New Issue
Block a user