Skip to content

feat(indexing): support custom file extensions - #12306

Merged
marius-kilocode merged 3 commits into
mainfrom
custom-file-extensions-for-indexing
Jul 17, 2026
Merged

feat(indexing): support custom file extensions#12306
marius-kilocode merged 3 commits into
mainfrom
custom-file-extensions-for-indexing

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Codebase indexing currently uses a fixed built-in extension list, which prevents projects from limiting indexing work to relevant formats or admitting additional text formats.

Add an optional indexing.fileExtensions allowlist. When configured, it replaces the built-in extension set across full scans, file watching, parsing, stale-result filtering, and worktree searches. Values are normalized case-insensitively, custom text formats use fallback chunking, and omitted configuration preserves the existing defaults.

Expose the setting in the CLI, VS Code, and Console configuration surfaces, and document its replacement semantics.

file-806d63fe1ecf88db8736c8aa34b7b73f

Closes #12299.

@marius-kilocode
marius-kilocode force-pushed the custom-file-extensions-for-indexing branch from 05b54a5 to c081f58 Compare July 17, 2026 09:49
Comment thread packages/kilo-indexing/src/indexing/search-service.ts
Comment thread packages/kilo-indexing/src/indexing/processors/file-watcher.ts
@kilo-code-bot

kilo-code-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-indexing/src/indexing/search-service.ts 56 Extension filtering applied after the vector store already capped results at maxResults, can under-return results vs the baseline path's expanding-search approach
packages/kilo-indexing/src/indexing/processors/file-watcher.ts 280 Extensionless files (Dockerfile, Makefile, etc.) previously admitted by `
Files Reviewed (incremental: 1 file)
  • packages/kilo-vscode/webview-ui/src/i18n/ko.ts - no issues

Only change since the previous review is a line-wrap formatting fix to the Korean translation string for settings.indexing.fileExtensions.description (no content or logic change). The two previously reported issues remain unresolved (files not touched in this update).

Fix these issues in Kilo Cloud

Previous Review Summaries (2 snapshots, latest commit ca19c85)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit ca19c85)

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-indexing/src/indexing/search-service.ts 56 Extension filtering applied after the vector store already capped results at maxResults, can under-return results vs the baseline path's expanding-search approach
packages/kilo-indexing/src/indexing/processors/file-watcher.ts 280 Extensionless files (Dockerfile, Makefile, etc.) previously admitted by `
Files Reviewed (incremental: 19 i18n files)
  • packages/kilo-vscode/webview-ui/src/i18n/ar.ts
  • packages/kilo-vscode/webview-ui/src/i18n/br.ts
  • packages/kilo-vscode/webview-ui/src/i18n/bs.ts
  • packages/kilo-vscode/webview-ui/src/i18n/da.ts
  • packages/kilo-vscode/webview-ui/src/i18n/de.ts
  • packages/kilo-vscode/webview-ui/src/i18n/es.ts
  • packages/kilo-vscode/webview-ui/src/i18n/fr.ts
  • packages/kilo-vscode/webview-ui/src/i18n/it.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ja.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ko.ts
  • packages/kilo-vscode/webview-ui/src/i18n/nl.ts
  • packages/kilo-vscode/webview-ui/src/i18n/no.ts
  • packages/kilo-vscode/webview-ui/src/i18n/pl.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ru.ts
  • packages/kilo-vscode/webview-ui/src/i18n/th.ts
  • packages/kilo-vscode/webview-ui/src/i18n/tr.ts
  • packages/kilo-vscode/webview-ui/src/i18n/uk.ts
  • packages/kilo-vscode/webview-ui/src/i18n/zh.ts
  • packages/kilo-vscode/webview-ui/src/i18n/zht.ts

Only additive translation strings for the new settings.indexing.fileExtensions.* keys; no logic changes since the previous review. The two previously reported issues remain unresolved (files not touched in this update).

Fix these issues in Kilo Cloud

Previous review (commit c081f58)

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-indexing/src/indexing/search-service.ts 56 Extension filtering applied after the vector store already capped results at maxResults, can under-return results vs the baseline path's expanding-search approach
packages/kilo-indexing/src/indexing/processors/file-watcher.ts 280 Extensionless files (Dockerfile, Makefile, etc.) previously admitted by `
Files Reviewed (32 files)
  • .changeset/indexing-file-extensions.md
  • bun.lock
  • packages/kilo-console/package.json
  • packages/kilo-console/src/routes/config/IndexingRoute.tsx
  • packages/kilo-console/src/routes/config/state/indexing.test.ts
  • packages/kilo-console/src/routes/config/state/indexing.ts
  • packages/kilo-docs/pages/customize/context/codebase-indexing.md
  • packages/kilo-indexing/package.json
  • packages/kilo-indexing/src/config.ts
  • packages/kilo-indexing/src/file-extensions.ts
  • packages/kilo-indexing/src/indexing/config-manager.ts
  • packages/kilo-indexing/src/indexing/interfaces/config.ts
  • packages/kilo-indexing/src/indexing/processors/file-watcher.ts - 1 issue
  • packages/kilo-indexing/src/indexing/processors/parser.ts
  • packages/kilo-indexing/src/indexing/processors/scanner.ts
  • packages/kilo-indexing/src/indexing/search-service.ts - 1 issue
  • packages/kilo-indexing/src/indexing/service-factory.ts
  • packages/kilo-indexing/src/indexing/shared/is-binary.ts
  • packages/kilo-indexing/src/indexing/shared/supported-extensions.ts
  • packages/kilo-indexing/test/kilocode/indexing/config-manager.test.ts
  • packages/kilo-indexing/test/kilocode/indexing/processors/file-watcher.test.ts
  • packages/kilo-indexing/test/kilocode/indexing/processors/parser.test.ts
  • packages/kilo-indexing/test/kilocode/indexing/processors/scanner.test.ts
  • packages/kilo-indexing/test/kilocode/indexing/search-service.test.ts
  • packages/kilo-vscode/tests/unit/indexing-tab-state.test.ts
  • packages/kilo-vscode/webview-ui/src/components/settings/IndexingTab.tsx
  • packages/kilo-vscode/webview-ui/src/i18n/en.ts
  • packages/kilo-vscode/webview-ui/src/types/messages/config.ts
  • packages/opencode/src/kilocode/components/dialog-indexing.tsx
  • packages/opencode/src/kilocode/config/overlay.ts
  • packages/opencode/test/kilocode/indexing-dialog-state.test.ts
  • packages/opencode/test/kilocode/server/config-overlay.test.ts
  • packages/sdk/js/src/v2/gen/types.gen.ts
  • packages/sdk/openapi.json

Fix these issues in Kilo Cloud


Reviewed by claude-sonnet-5 · Input: 34 · Output: 5.4K · Cached: 745.3K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 2be0b2f into main Jul 17, 2026
33 checks passed
@marius-kilocode
marius-kilocode deleted the custom-file-extensions-for-indexing branch July 17, 2026 11:22
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…s-for-indexing

feat(indexing): support custom file extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Allow custom file extensions for indexing (e.g., .php, .js, .css)

2 participants