Skip to content

fix(compiler): skip directories marked with .gdignore - #38

Merged
moluopro merged 1 commit into
godothub:mainfrom
enpitsuLin:codex/skip-gdignore-directories
Nov 17, 2026
Merged

moluopro merged 1 commit into
godothub:mainfrom
enpitsuLin:codex/skip-gdignore-directories

Conversation

@enpitsuLin

Copy link
Copy Markdown
Contributor

Fixes #37.

TypeScript 编译器在检查编译缓存之前会遍历项目目录。现在发现目录包含 .gdignore 时,会跳过该目录及其子目录,避免每次加载 TypeScript 脚本都重复扫描参考文件。

已构建并验证 macOS arm64 编辑器扩展。在 Godot 4.7.2 上使用同一项目和约 20,000 个参考文件,从加载屏到游戏就绪由 88.6 秒降到 10.8 秒。

@moluopro

Copy link
Copy Markdown
Contributor

谢谢!

@moluopro
moluopro merged commit 41b8fe4 into godothub:main Nov 17, 2026
1 check passed
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.

[Bug]: TypeScript 编译扫描忽略 .gdignore,导致调试启动缓慢

2 participants