mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 08:03:28 +00:00
fix(quick-open): support projects past 10k files
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export const QUICK_OPEN_READDIR_MAX_FILES = 10_000
|
||||
import { QUICK_OPEN_LISTING_MAX_RESULTS } from './quick-open-listing-limits'
|
||||
|
||||
export const QUICK_OPEN_READDIR_MAX_FILES = QUICK_OPEN_LISTING_MAX_RESULTS
|
||||
export const QUICK_OPEN_READDIR_MAX_ENTRIES = 50_000
|
||||
export const QUICK_OPEN_READDIR_MAX_DIRECTORIES = 25_000
|
||||
export const QUICK_OPEN_READDIR_MAX_DEPTH = 256
|
||||
|
||||
@@ -392,7 +392,8 @@ describe('quick-open readdir walk', () => {
|
||||
).rejects.toThrow('File listing exceeded')
|
||||
})
|
||||
|
||||
it('keeps the default safety cap for a very large collapsed directory', async () => {
|
||||
it('supports more than 10,000 files while keeping the default safety cap', async () => {
|
||||
expect(QUICK_OPEN_READDIR_MAX_FILES).toBeGreaterThan(10_000)
|
||||
const root = await makeTempRoot()
|
||||
await mkdirRel(root, 'dist')
|
||||
opendirMock.mockResolvedValueOnce({
|
||||
@@ -416,7 +417,7 @@ describe('quick-open readdir walk', () => {
|
||||
gitPaths: [],
|
||||
directoryPaths: ['dist/']
|
||||
})
|
||||
).rejects.toThrow('File listing exceeded 10000 files')
|
||||
).rejects.toThrow(`File listing exceeded ${QUICK_OPEN_READDIR_MAX_FILES} files`)
|
||||
})
|
||||
|
||||
it('identifies budget errors so callers can translate only those to install-rg guidance', () => {
|
||||
|
||||
Reference in New Issue
Block a user