C3pa

Results 37 comments of C3pa

I guess you would need to implement `pairs(obj)` yourself. See this as an example: https://gitlab.com/OpenMW/openmw/-/merge_requests/1643/diffs

The issue looks like it is the same as #871.

It's just the special characters that need to be double-escaped. Should be quite simple to do. [Here is an example](https://github.com/kikito/inspect.lua/blob/master/inspect.lua#L91) from awesome inspect.lua by kikito.

It's the same for table keys. The following snippet, when hovered gives: ```lua local foo = { ["some\\path"] = "bar", } ``` ![image](https://github.com/LuaLS/lua-language-server/assets/41503714/43df8c88-f94d-4a2d-bc4f-49b61d65b80c)

This looks like a duplicate of #1186.

We don't have a way to do this currently. You may be interested in writing a short [plugin ](https://github.com/LuaLS/lua-language-server/wiki/Plugins)that would do that for you.

Oh, looks like the Wiki docs aren't up to date anymore. There is more info on plugins on the project's GitHub pages: https://luals.github.io/wiki/plugins/. I can't really help you from here,...

In my opinion, inject field diagnostic isn't smart enough yet and has its false positives. I suggest opening an issue or looking if an issue about this was already reported.

Bear in mind that in LuaCATS annotations (the ones used by this language server), the `|` character means union of types, not boolean OR operator.