mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
fix: regression in completion filtering (#1135)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user