fix(health): stop using deprecated ts.language.inspect_language() (#22850)

This commit is contained in:
Sizhe Zhao 2023-04-01 21:47:20 +08:00 committed by GitHub
parent 19110eddb9
commit 6a4ebf894f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ function M.check()
)
)
else
local lang = ts.language.inspect_language(parsername)
local lang = ts.language.inspect(parsername)
health.report_ok(
string.format('Parser: %-10s ABI: %d, path: %s', parsername, lang._abi_version, parser)
)