Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ describe("Fallback Extensions Configuration", () => {
expect(shouldUseFallbackChunking(".vb")).toBe(true)
expect(shouldUseFallbackChunking(".scala")).toBe(true)
expect(shouldUseFallbackChunking(".swift")).toBe(true)
expect(shouldUseFallbackChunking(".al")).toBe(true)

// Extensions that should not use fallback (have working parsers)
expect(shouldUseFallbackChunking(".js")).toBe(false)
Expand All @@ -258,5 +259,7 @@ describe("Fallback Extensions Configuration", () => {
expect(shouldUseFallbackChunking(".Vb")).toBe(true)
expect(shouldUseFallbackChunking(".SCALA")).toBe(true)
expect(shouldUseFallbackChunking(".Scala")).toBe(true)
expect(shouldUseFallbackChunking(".AL")).toBe(true)
expect(shouldUseFallbackChunking(".Al")).toBe(true)
})
})
1 change: 1 addition & 0 deletions src/services/code-index/shared/supported-extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ 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
".al", // AL Language (Dynamics 365 Business Central) - no dedicated WASM parser
]

/**
Expand Down
2 changes: 2 additions & 0 deletions src/services/tree-sitter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ const extensions = [
"erb",
// Visual Basic .NET
"vb",
// AL Language
"al",
].map((e) => `.${e}`)

export { extensions }
Expand Down