Fix docs validation to detect unknown keys (#49660)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...

---------

Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>
This commit is contained in:
Ben KunkleandZed Zippy authored and GitHub committed 2026-02-19 20:46:21 -05:00
1 parent 76d8d97998
commit f3a89766b8
32 files changed
+867 -503

No files matched your search

+5 -3
View File
@@ -14,7 +14,7 @@ Lua support is available through the [Lua extension](https://github.com/zed-exte
To configure LuaLS you can create a `.luarc.json` file in the root of your project.
```json [settings]
```json
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime.version": "Lua 5.4",
@@ -60,7 +60,7 @@ cd .. && git clone https://github.com/notpeter/playdate-luacats
Then in your `.luarc.json`:
```json [settings]
```json
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime.version": "Lua 5.4",
@@ -96,6 +96,7 @@ To enable [Inlay Hints](../configuring-languages.md#inlay-hints) for LuaLS in Ze
1. Configure inlay hints in Settings ({#kb zed::OpenSettings}) under Languages > Lua, or add to your settings file:
```json [settings]
{
"languages": {
"Lua": {
"inlay_hints": {
@@ -106,6 +107,7 @@ To enable [Inlay Hints](../configuring-languages.md#inlay-hints) for LuaLS in Ze
}
}
}
}
```
2. Add `"hint.enable": true` to your `.luarc.json`.
@@ -116,7 +118,7 @@ To enable [Inlay Hints](../configuring-languages.md#inlay-hints) for LuaLS in Ze
To enable auto-formatting with your LuaLS (provided by [CppCXY/EmmyLuaCodeStyle](https://github.com/CppCXY/EmmyLuaCodeStyle)) make sure you have `"format.enable": true,` in your .luarc.json:
```json [settings]
```json
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"format.enable": true