LuaLS / lua-language-server

A language server that offers Lua language support - programmed in Lua
https://luals.github.io
MIT License
3.35k stars 320 forks source link

some cocos API is missing #2229

Open hydraulic opened 1 year ago

hydraulic commented 1 year ago

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

MacOS

What is the issue affecting?

Completion

Expected Behaviour

hope the plugin has complete support for cocos API

Actual Behaviour

some cocos API not found in lua file that in plugins

Reproduction steps

When I use function "removeFromParent" from Node.lua, but I did not find this function in Node.lua that comes with the plugin

Additional Notes

No response

Log File

No response

carsakiller commented 1 year ago

The documentation for Cocos is kept up to date by volunteer contributors. Any fixes and updates can be added to LuaCATS/cocos4.0.

CppCXY commented 1 year ago

cocosapi is also provided by me. It is converted from the API files exported by cocos itself. If the method you desire is not available, you may consider improving the tool yourself. I noticed that you have forked my repository, so you can take a look at it yourself.