Skip to content

Commit 4f4328d

Browse files
Add swift files to fallback list (#6724)
1 parent 6892427 commit 4f4328d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/services/code-index/processors/__tests__/parser.vb.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ describe("Fallback Extensions Configuration", () => {
243243
// Extensions that should use fallback
244244
expect(shouldUseFallbackChunking(".vb")).toBe(true)
245245
expect(shouldUseFallbackChunking(".scala")).toBe(true)
246+
expect(shouldUseFallbackChunking(".swift")).toBe(true)
246247

247248
// Extensions that should not use fallback (have working parsers)
248249
expect(shouldUseFallbackChunking(".js")).toBe(false)

src/services/code-index/shared/supported-extensions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const scannerExtensions = allExtensions
2121
export const fallbackExtensions = [
2222
".vb", // Visual Basic .NET - no dedicated WASM parser
2323
".scala", // Scala - uses fallback chunking instead of Lua query workaround
24+
".swift", // Swift - uses fallback chunking due to parser instability
2425
]
2526

2627
/**

0 commit comments

Comments
 (0)