fix:recently edited files change ignore bug

function shouldIgnore return promise,if dont await,nothing can set in recentlyEditedFilesCache
This commit is contained in:
WEC 2025-04-14 20:07:03 +08:00 • committed by GitHub
parent 87ad955b3b
commit a0d9d6307f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -642,7 +642,7 @@ export class Core {
on("didChangeActiveTextEditor", async ({ data: { filepath } }) => {
try {
const ignore = shouldIgnore(filepath, this.ide);
const ignore = await shouldIgnore(filepath, this.ide);
if (!ignore) {
recentlyEditedFilesCache.set(filepath, filepath);
}