fix(repo-map) go vendor included in repo map causing token limit error (#777)

This commit is contained in:
Christopher Brewin 2024-11-03 18:45:44 +10:00 committed by GitHub
parent e3df3b479f
commit 99f3b3ae00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -583,7 +583,7 @@ local function pattern_to_lua(pattern)
end end
function M.parse_gitignore(gitignore_path) function M.parse_gitignore(gitignore_path)
local ignore_patterns = { "%.git", "%.worktree", "__pycache__", "node_modules" } local ignore_patterns = { "%.git", "%.worktree", "__pycache__", "node_modules", "vendor" }
local negate_patterns = {} local negate_patterns = {}
local file = io.open(gitignore_path, "r") local file = io.open(gitignore_path, "r")
if not file then return ignore_patterns, negate_patterns end if not file then return ignore_patterns, negate_patterns end