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?
Other
Expected Behaviour
如何 自动填充一个表 例如
`
template = {
a = 1
b = 1
c = 1
}
---@param a template
fun test(a)
xxxx
end
test{
a = ,
b = ,
c = ,
}
`
填充成这样 我只要写text{ }
里面的 a= xxx,b = xxx,c = xxx
可以实现类似的方法吗
Actual Behaviour
无
Reproduction steps
- Go to '...'
- Click '...'
- See error '...'
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
Start by reproducing the requested table-field completion in the Visual Studio Code extension on Windows using the Lua language server. Review how the server handles completion for table constructors and annotated parameters; done means the requested fields are suggested after typing the constructor, with behavior confirmed by a focused test or reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100