Skip to content

Commit

Permalink
fix loaded new file with ignored filename
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed May 13, 2021
1 parent 193c901 commit f6cc09d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# changelog

## 1.21.2
* `FIX` loaded new file with ignored filename

## 1.21.1
`2021-5-8`
* `FIX` [#529](https://github.com/sumneko/lua-language-server/issues/529)
Expand Down
4 changes: 3 additions & 1 deletion script/glob/gitignore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ function mt:scan(path, callback)
end
end
end
check(path)
if not self:simpleMatch(path) then
check(path)
end
while #list > 0 do
local current = list[#list]
if not current then
Expand Down

0 comments on commit f6cc09d

Please sign in to comment.