Comments (6)
well, your issue is really detailed, thanks again, I will try to fix it later.
from luacoderassist.
@liwangqian CASE 1 and CASE 2 are resolved but CASE 3 partially:
Thank you for your efforts.
from luacoderassist.
about CASE 2
now all fields and methods for simple tables are defined specifically, but for namedTypes from completions it works wrong, this is important because, as I noted above, I make the Corona completions, for Corona community. I attached edited love.json. You can replace original with it and check next situation:
from luacoderassist.
@labraxoid For the Case 3 you describe up, we use the first definition of a symbol and will not change it's definition even thought we redefined it after some codes, so this case will not be resolved.
And, for the second case, the API description file xxx.json
, should add "kind": "constructor"
to the function to help figuring out that, it's a constructor, and we will create a new instance instead.
from luacoderassist.
in CASE 3 is not about redefining, it is about different ways of function definition in Lua. The variable 'foo' is nil, we do not define it, we only declare. If we use way function foo() ... end
LCA defines that variable 'foo' is function and we can see in outline all variables inside function but if we use foo = function() ... end
LCA defines that variable 'foo' is function, defines type of function return but without definition variables inside. This is not a common situation, so if the implementation is difficult, then it can be omitted.
Thank you for extension of API completions. I will try it in next version.
from luacoderassist.
@labraxoid Try the Ver2.2.8, CASE 3 is fixed in this version.
from luacoderassist.
Related Issues (20)
- 好期望能够早日开发出类似EmmyLua的注释标签推断类型的功能呀 HOT 1
- Crash when luacheck is not available HOT 1
- 代码提示失效 HOT 1
- LuaCoderAssist Crash HOT 1
- Extension can't find .luacheckrc in WSL HOT 3
- Crashes after VSCode update HOT 3
- [Feature Request] Ship UNIX luacheck binaries in addition to Windows ones HOT 1
- Luacheck: Automatic Option should be off by default HOT 1
- throw er; // Unhandled 'error' event HOT 1
- 请问后续会不会添加全局变量高亮之类的功能呢?
- ENABLE => Crash by "throw er; // Unhandled 'error' event" ( with VSC 1.57.1 on Windows, LuaCoderAssist v2.3.9 )
- The LuaCoderAssist server crashed 5 times in the last 3 minutes. The server will not be restarted. HOT 2
- Need help : Luacheck doesn't work HOT 3
- Latest LuaCoderAssistCrash HOT 3
- 2.3.9版的luacheck的错误代码忽略功能失效了 HOT 1
- macos 安装插件后,立即报错 HOT 4
- Wrong luacheck cwd is used with --config HOT 1
- Cannot find module 'supports-color' HOT 1
- 格式化代码问题 HOT 1
- Typing 'setmetatable' function gives error at console HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luacoderassist.