What are the steps to reproduce this issue?(重现步骤?)
Open Preferences -> Editor -> Inlay Hints
What happens?(出现什么问题?)
The Groovy, Java and Kotlin options have an "Exclude list..."
For Lua it is missing.
What were you expecting to happen?(期望?)
"Exclude list..." to appear so Inlay Hints are even more useful.
Any other comments?(其它说明)
Inlay Hints are a pretty useful feature in Intellij. But having no way to make exceptions makes it less desirable, it makes a lot of the code very bulky. In some situations it is just very clear what the parameters are:
require(modname: "module") doesn't have to say you passed a 'modname' since everyone knows what require() does.
math.max(x: 1, 10) hints '1' is 'x', which only make it less understandable
string.lower(s: "Test") the 's' hint here is pretty obvious as well
These are just some examples for the default Lua libraries, the "Exclude list..." could also allow enable/disable inlay hints for your own code.
e.g. it would be great code like worldHelper:getObjectByName(_objectName: "myObjectName") wouldn't give any hints about the parameter being a _objectUID
I've adding initial support for the Exclude List myself, could be improved later on when necessary but it already adds the ability to disable Inlay Params in a lot of occasions. See #399
Environment(环境)
What are the steps to reproduce this issue?(重现步骤?)
Open Preferences -> Editor -> Inlay Hints
What happens?(出现什么问题?)
The Groovy, Java and Kotlin options have an "Exclude list..." For Lua it is missing.
What were you expecting to happen?(期望?)
"Exclude list..." to appear so Inlay Hints are even more useful.
Any other comments?(其它说明)
Inlay Hints are a pretty useful feature in Intellij. But having no way to make exceptions makes it less desirable, it makes a lot of the code very bulky. In some situations it is just very clear what the parameters are:
require(modname: "module")
doesn't have to say you passed a 'modname' since everyone knows what require() does.math.max(x: 1, 10)
hints '1' is 'x', which only make it less understandablestring.lower(s: "Test")
the 's' hint here is pretty obvious as wellThese are just some examples for the default Lua libraries, the "Exclude list..." could also allow enable/disable inlay hints for your own code.
e.g. it would be great code like
worldHelper:getObjectByName(_objectName: "myObjectName")
wouldn't give any hints about the parameter being a _objectUID