cleanup unused customIgnorePatterns (#1009)

This commit is contained in:
Anas H. Sulaiman
2025-06-13 11:49:48 -04:00
committed by GitHub
parent d25459d815
commit c886f08525
5 changed files with 2 additions and 6 deletions

View File

@@ -92,7 +92,7 @@ describe('handleAtCommand', () => {
initialize: vi.fn(),
shouldIgnoreFile: vi.fn(() => false),
filterFiles: vi.fn((files) => files),
getIgnoreInfo: vi.fn(() => ({ gitIgnored: [], customIgnored: [] })),
getIgnoreInfo: vi.fn(() => ({ gitIgnored: [] })),
isGitRepository: vi.fn(() => true),
};
vi.mocked(FileDiscoveryService).mockImplementation(

View File

@@ -41,7 +41,7 @@ describe('useCompletion git-aware filtering integration', () => {
initialize: vi.fn(),
shouldIgnoreFile: vi.fn(),
filterFiles: vi.fn(),
getIgnoreInfo: vi.fn(() => ({ gitIgnored: [], customIgnored: [] })),
getIgnoreInfo: vi.fn(() => ({ gitIgnored: [] })),
glob: vi.fn().mockResolvedValue([]),
};

View File

@@ -26,7 +26,6 @@ describe('GlobTool', () => {
return service;
},
getFileFilteringRespectGitIgnore: () => true,
getFileFilteringCustomIgnorePatterns: () => [],
getFileFilteringAllowBuildArtifacts: () => false,
} as Partial<Config> as Config;

View File

@@ -29,7 +29,6 @@ describe('ReadManyFilesTool', () => {
return service;
},
getFileFilteringRespectGitIgnore: () => true,
getFileFilteringCustomIgnorePatterns: () => [],
getFileFilteringAllowBuildArtifacts: () => false,
getGeminiIgnorePatterns: () => ['**/foo.bar', 'foo.baz', 'foo.*'],
} as Partial<Config> as Config;