diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-01 22:48:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-01 22:48:04 +0800 |
commit | 9433b5540292a7256aeef4176cca50002f801b40 (patch) | |
tree | 3f5eded8dfd7cadb49241368ba65a34f2efe31b4 | |
parent | 24973ecf4ee1696e5354babae744ad3b8262c610 (diff) | |
download | lua-language-server-9433b5540292a7256aeef4176cca50002f801b40.zip |
resolve #465
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | script/provider/diagnostic.lua | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md index 3cb26321..bf52362f 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ * `NEW` supports local config file, using `--configpath="config.json"`, [learn more here](https://github.com/sumneko/lua-language-server/wiki/Setting-without-VSCode) * `NEW` goto `type definition` * `CHG` [#549](https://github.com/sumneko/lua-language-server/issues/549) +* `CHG` diagnostics: always ignore the ignored files even if they are opened * `FIX` completion: `type() ==` may does not work ## 2.0.5 diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index 88fbbc4e..b385b4e3 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -183,8 +183,7 @@ function m.doDiagnostic(uri) return end uri = files.asKey(uri) - if (files.isLibrary(uri) or ws.isIgnored(uri)) - and not files.isOpen(uri) then + if files.isLibrary(uri) or ws.isIgnored(uri) then return end |