Repository navigation
v2.15.0 - LSP/MCP + Go/Lua correctness fixes
Correctness fixes across the LSP, MCP, Go and Lua subsystems.
LSP & MCP correctness fixes
- LSP
textDocument/referencesnow honorscontext.includeDeclaration. The flag was plumbed through every layer but discarded; whenfalse, the declaration occurrence is now excluded. - LSP field/variable
documentSymbolrange covers the whole declaration (extends to the terminating;instead of stopping at the name). - MCP tools coerce client arguments instead of hard-casting them.
timeoutMs/maxDepth/args/classNamego throughmcpCoerceInt/_strOrNull/_listOrEmpty, so a JSONdouble(1000.0) or wrong-typed value no longer throws a rawTypeError. - MCP HTTP/SSE transport answers CORS preflight (
OPTIONS→204withAllow-Origin/Methods/Headers) instead of a404.
Go & Lua generator correctness fixes
- Go
&^(AND NOT / bit clear) now computesa & (~b)instead of a plaina & b(desugared at parse time, same precedence as&). - Lua string-variable concatenation emits
..for staticallyString-typed operands (s1 + s2), not an invalid+. - Lua list indexing is shifted to Lua's 1-based convention (
list[0]→list[1],list[i]→list[(i) + 1]); map key access unchanged. - Lua string-interpolation subexpressions are parenthesized (
"${a < b}"→"x" .. (a < b)) to fix mis-association under..precedence.
Full diff: v2.14.0...v2.15.0