LuaLS / LuaLS/lua-language-server
部分情况下缺失字段的代码提示
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
### How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
### Which OS are you using?
Windows
### What is the issue affecting?
Completion
### Expected Behaviour
"testClass"修改成"self",并不能像如图那样拥有"intField"字段的代码提示,希望更换成"self"也可以拥有一样的代码提示

### Actual Behaviour
使用"self"并没有访问二级字段"intField"的代码提示

### Reproduction steps
使用"self"的情况下,在同一函数内定义字段没有问题,多级字段在不同函数内定义会出现没有代码提示的错误
不过使用"testClass"替换"self"可以完美解决,希望"self"也支持同样的代码提示

### Additional Notes
_No response_
### Log File
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the missing nested-field completion in the Visual Studio Code extension on Windows, following the reported self versus testClass steps. Then trace the completion handling for self and multi-level fields; done means self offers intField completion in the same case where testClass does.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100