LuaLS / LuaLS/lua-language-server

Can elide inlay hints in some cases

Open
#2,151 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

parameter hints can be elided if the value of the parameter is the same as the hint

function call(a, b) end

call(a, b) -- With hints this is a:a and b:b

type hints could be elided if the type appears on the right (less sure about this one)

local inst = SomeType.new()

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

The issue names no files, tests, or entry points. Start by locating the language-server code that generates parameter and type inlay hints, then check existing coverage for these examples. Done means parameter hints are elided when the argument value matches the hint, with the proposed type-hint behavior resolved and covered.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.