fix: change .geminiignore to .qwenignore

This commit is contained in:
mingholy.lmh
2025-09-14 19:38:40 +08:00
parent 8bb8660c72
commit 1993156721
23 changed files with 120 additions and 118 deletions

View File

@@ -448,11 +448,11 @@ export const SETTINGS_SCHEMA = {
},
respectGeminiIgnore: {
type: 'boolean',
label: 'Respect .geminiignore',
label: 'Respect .qwenignore',
category: 'Context',
requiresRestart: true,
default: true,
description: 'Respect .geminiignore files when searching',
description: 'Respect .qwenignore files when searching',
showInDialog: true,
},
enableRecursiveFileSearch: {

View File

@@ -205,7 +205,7 @@ describe('AtFileProcessor', () => {
expect(context.ui.addItem).toHaveBeenCalledWith(
{
type: MessageType.INFO,
text: "File '@{ignored.txt}' was ignored by .gitignore or .geminiignore and was not included in the prompt.",
text: "File '@{ignored.txt}' was ignored by .gitignore or .qwenignore and was not included in the prompt.",
},
expect.any(Number),
);

View File

@@ -56,7 +56,7 @@ export class AtFileProcessor implements IPromptProcessor {
try {
const fileContentParts = await readPathFromWorkspace(pathStr, config);
if (fileContentParts.length === 0) {
const uiMessage = `File '@{${pathStr}}' was ignored by .gitignore or .geminiignore and was not included in the prompt.`;
const uiMessage = `File '@{${pathStr}}' was ignored by .gitignore or .qwenignore and was not included in the prompt.`;
context.ui.addItem(
{ type: MessageType.INFO, text: uiMessage },
Date.now(),

View File

@@ -581,7 +581,7 @@ describe('handleAtCommand', () => {
describe('gemini-ignore filtering', () => {
it('should skip gemini-ignored files in @ commands', async () => {
await createTestFile(
path.join(testRootDir, '.geminiignore'),
path.join(testRootDir, '.qwenignore'),
'build/output.js',
);
const geminiIgnoredFile = await createTestFile(
@@ -611,9 +611,9 @@ describe('handleAtCommand', () => {
);
});
});
it('should process non-ignored files when .geminiignore is present', async () => {
it('should process non-ignored files when .qwenignore is present', async () => {
await createTestFile(
path.join(testRootDir, '.geminiignore'),
path.join(testRootDir, '.qwenignore'),
'build/output.js',
);
const validFile = await createTestFile(
@@ -645,7 +645,7 @@ describe('handleAtCommand', () => {
it('should handle mixed gemini-ignored and valid files', async () => {
await createTestFile(
path.join(testRootDir, '.geminiignore'),
path.join(testRootDir, '.qwenignore'),
'dist/bundle.js',
);
const validFile = await createTestFile(