fix: regression in completion filtering (#1135)

This commit is contained in:
Anas H. Sulaiman
2025-06-18 01:05:47 -04:00
committed by GitHub
parent 7f189f4d5f
commit 63fbc8ce18
2 changed files with 31 additions and 0 deletions

View File

@@ -306,6 +306,12 @@ export function useCompletion(
value: escapePath(relativePath),
};
})
.filter((s) => {
if (fileDiscoveryService) {
return !fileDiscoveryService.shouldGitIgnoreFile(s.label); // relative path
}
return true;
})
.slice(0, maxResults);
return suggestions;