Lua server diagnostics (error, warning) disappear after runnig `:e`?

As title. I have tried the other language server, this only happens to Lua.

For example: I shows:

Diagnostics: Unused local EXPR_NOREF_NOERR_TRUNC.

If I now run :e then this diagnostics will disappear.

If I try typing something, then these error disappear.

confirmed upstream issued: The diagnostics of sumneko_lua does not appear after :e · Issue #946 · sumneko/lua-language-server (github.com)