diff --git a/src/services/code-index/processors/__tests__/parser.vb.spec.ts b/src/services/code-index/processors/__tests__/parser.vb.spec.ts index 95fd73cc9a5..7f00a44b42f 100644 --- a/src/services/code-index/processors/__tests__/parser.vb.spec.ts +++ b/src/services/code-index/processors/__tests__/parser.vb.spec.ts @@ -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) @@ -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) }) }) diff --git a/src/services/code-index/shared/supported-extensions.ts b/src/services/code-index/shared/supported-extensions.ts index 80dd7102fff..71becb843ae 100644 --- a/src/services/code-index/shared/supported-extensions.ts +++ b/src/services/code-index/shared/supported-extensions.ts @@ -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 ] /** diff --git a/src/services/tree-sitter/index.ts b/src/services/tree-sitter/index.ts index 145ba847308..fd17d91c634 100644 --- a/src/services/tree-sitter/index.ts +++ b/src/services/tree-sitter/index.ts @@ -91,6 +91,8 @@ const extensions = [ "erb", // Visual Basic .NET "vb", + // AL Language + "al", ].map((e) => `.${e}`) export { extensions }