mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
fix: change .geminiignore to .qwenignore
This commit is contained in:
@@ -65,7 +65,7 @@ export interface ReadManyFilesParams {
|
||||
useDefaultExcludes?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to respect .gitignore and .geminiignore patterns (optional, defaults to true)
|
||||
* Whether to respect .gitignore and .qwenignore patterns (optional, defaults to true)
|
||||
*/
|
||||
file_filtering_options?: {
|
||||
respect_git_ignore?: boolean;
|
||||
@@ -149,13 +149,13 @@ ${finalExclusionPatternsForDescription
|
||||
: 'none specified'
|
||||
}`;
|
||||
|
||||
// Add a note if .geminiignore patterns contributed to the final list of exclusions
|
||||
// Add a note if .qwenignore patterns contributed to the final list of exclusions
|
||||
if (geminiIgnorePatterns.length > 0) {
|
||||
const geminiPatternsInEffect = geminiIgnorePatterns.filter((p) =>
|
||||
finalExclusionPatternsForDescription.includes(p),
|
||||
).length;
|
||||
if (geminiPatternsInEffect > 0) {
|
||||
excludeDesc += ` (includes ${geminiPatternsInEffect} from .geminiignore)`;
|
||||
excludeDesc += ` (includes ${geminiPatternsInEffect} from .qwenignore)`;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -571,7 +571,7 @@ export class ReadManyFilesTool extends BaseDeclarativeTool<
|
||||
},
|
||||
file_filtering_options: {
|
||||
description:
|
||||
'Whether to respect ignore patterns from .gitignore or .geminiignore',
|
||||
'Whether to respect ignore patterns from .gitignore or .qwenignore',
|
||||
type: 'object',
|
||||
properties: {
|
||||
respect_git_ignore: {
|
||||
@@ -581,7 +581,7 @@ export class ReadManyFilesTool extends BaseDeclarativeTool<
|
||||
},
|
||||
respect_gemini_ignore: {
|
||||
description:
|
||||
'Optional: Whether to respect .geminiignore patterns when listing files. Defaults to true.',
|
||||
'Optional: Whether to respect .qwenignore patterns when listing files. Defaults to true.',
|
||||
type: 'boolean',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user