🐛 fix(vscode): 代码阅读工作区索引跳过嵌套的 checkout 和忽略文件忽略的,任务名不再查到两处

This commit is contained in:
cruldra committed 2026-09-26 20:14:30 +08:00
1 parent de355661f0
commit 113b02657c
7 files changed
+202 -12

No files matched your search

+4 -1
View File
@@ -431,7 +431,10 @@ export interface WorkspaceIndex {
id: string
/** 按哪种语言解析:宿主用这个 languageId 的语言插件。 */
languageId: string
/** 看哪些文件:相对各工作区文件夹的 glob('**\/*.py');files.exclude、search.exclude 排除的,和 .venv、node_modules、__pycache__ 里的不看。 */
/**
* 看哪些文件:相对各工作区文件夹的 glob('**\/*.py');files.exclude、search.exclude 排除的,.venv、node_modules、__pycache__ 里的,
* 嵌套的 checkout(子仓库、git worktree)里的,和忽略文件(.gitignore、.ignore,按 search.useIgnoreFiles)忽略的不看。
*/
include: string
/** 便宜的文字预筛:源码里不可能有要找的东西就不解析。 */
mentions: (source: string) => boolean