Files
neovim/runtime/lua/vim
neovim-backports[bot] df726644b8 fix(lsp): check filetype registry in health (#38885)
fix(health): misleading warnings re filetypes registered w/ vim.filetype.add() #38867

Problem:
`:checkhealth vim.lsp` validates configured filetypes against
`getcompletion('', 'filetype')`. This only reflects runtime support
files.

This causes false warnings in `:checkhealth vim.lsp` for configured
filetypes that are known to the Lua filetype registry, including
values added with `vim.filetype.add()` and built-in registry-only
filetypes.

Solution:
Build the healthcheck's known-filetype set from both
`getcompletion('', 'filetype')` and `vim.filetype.inspect()`.

(cherry picked from commit 20a3254ad4)

Co-authored-by: Barrett Ruth <62671086+barrettruth@users.noreply.github.com>
2026-04-08 17:24:15 -04:00
..
2026-04-06 01:24:32 +00:00
2026-03-11 18:24:57 +01:00
2025-06-06 15:36:48 +01:00
2026-03-28 09:59:54 -04:00
2026-01-09 10:07:15 +01:00
2026-03-11 18:00:18 +01:00
2026-04-08 16:19:48 +00:00
2026-04-08 16:19:48 +00:00
2026-03-11 18:00:18 +01:00
2025-09-16 11:41:36 +08:00
2026-04-01 17:08:38 -04:00