Skip to content

Commit 1f30a0c

Browse files
committed
fix: Add .vb extension to tree-sitter extensions list
This ensures VB.NET files are properly recognized and can use fallback chunking
1 parent 243e07a commit 1f30a0c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ describe("CodeParser - VB.NET and Fallback Extensions Support", () => {
2121
})
2222

2323
it("should use fallback chunking for VB.NET files", async () => {
24+
// First verify that shouldUseFallbackChunking works
25+
expect(shouldUseFallbackChunking(".vb")).toBe(true)
26+
2427
const vbContent = `
2528
Imports System
2629
Imports System.Collections.Generic

src/services/tree-sitter/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ const extensions = [
8989
// Embedded Template
9090
"ejs",
9191
"erb",
92+
// Visual Basic .NET
93+
"vb",
9294
].map((e) => `.${e}`)
9395

9496
export { extensions }

0 commit comments

Comments
 (0)