LuaLS / LuaLS/lua-language-server
Feature Suggestion: setting so `callSnippet` only completes non-optional parameters
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
Right now, when using the call snippet from completion.callSnippet, it completes all parameters of the all.
However, more often than not, I do not need the optional parameters, so that I end up having to delete the extra arguments all the time.
Would it maybe be possible to have a setting so that the call snippet only includes the non-optional parameters?
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 at the completion.callSnippet entry point and trace how call arguments are selected and how completion settings are defined. Determine where the optional-parameter setting belongs, then verify that the default behavior is unchanged and that enabling it produces snippets containing only non-optional parameters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100