summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md3
-rw-r--r--script/glob/gitignore.lua4
2 files changed, 6 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index 6dc280f2..e1cff8c4 100644
--- a/changelog.md
+++ b/changelog.md
@@ -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)
diff --git a/script/glob/gitignore.lua b/script/glob/gitignore.lua
index 7a1a7d74..73e20cbf 100644
--- a/script/glob/gitignore.lua
+++ b/script/glob/gitignore.lua
@@ -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