mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-19 10:02:04 +08:00
Extract the open-tab enumeration into a shared private async helper getOpenTabPaths(dir) that: - uses the cached FileIgnoreController (same instance as gatherEditorContext) - filters tabs through validateAccess so .kilocodeignore is respected - returns a Set<string> of workspace-relative forward-slash paths Both the requestFileSearch handler and gatherEditorContext now call this helper, eliminating the duplicated loop and ensuring the file search prioritization respects .kilocodeignore the same way the agent context does.