Add swift files to fallback list (#6724)

This commit is contained in:
Nitesh 2025-08-05 17:19:23 -04:00 committed by GitHub
parent 6892427e34
commit 4f4328d97c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -243,6 +243,7 @@ describe("Fallback Extensions Configuration", () => {
// Extensions that should use fallback
expect(shouldUseFallbackChunking(".vb")).toBe(true)
expect(shouldUseFallbackChunking(".scala")).toBe(true)
expect(shouldUseFallbackChunking(".swift")).toBe(true)
// Extensions that should not use fallback (have working parsers)
expect(shouldUseFallbackChunking(".js")).toBe(false)

View file

@ -21,6 +21,7 @@ export const scannerExtensions = allExtensions
export const fallbackExtensions = [
".vb", // Visual Basic .NET - no dedicated WASM parser
".scala", // Scala - uses fallback chunking instead of Lua query workaround
".swift", // Swift - uses fallback chunking due to parser instability
]
/**