LuaLS / LuaLS/lua-language-server

[问题] 自动填充

Open
#2,565 1 comment 0 reactions 0 assignees View on GitHub

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
  1. Go to '...'
  2. Click '...'
  3. See error '...'
Additional Notes

No response

Log File

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.