-
I installed KCL language server extension, this works fairly well for basic type hints, but for defined values, I get nothing. I've used pkl before and values defined in a config were available in the type hinting.
when defining the namespace for app, I would expect to see a type hint showing the available values. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 2 replies
-
Hello, do you mean the values of cc @He1pa |
Beta Was this translation helpful? Give feedback.
-
Do you means want to display attribute type hint when defining config? e.g.
Where [:APP] and |
Beta Was this translation helpful? Give feedback.
-
I have impl this feature in #1659 will be available in the next version |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I was waiting for this in the new release, but just saw that is has been reverted. Why? And can we expect that is will be in the next release? This is really a show stopper for us as a company to use KCL. |
Beta Was this translation helpful? Give feedback.
-
cc @He1pa |
Beta Was this translation helpful? Give feedback.
-
We have encountered some problems with the display of hints on some expressions. And it is difficult to solve in a short time. After the problem is solved, we will add this feature again. |
Beta Was this translation helpful? Give feedback.
-
We re-provide this feature in this PR: #1751 |
Beta Was this translation helpful? Give feedback.
Currently, there are several situations where prompt information is provided.
1, when typing config attr name, provide complete item and it type
after this, provide type hint for attr
hover info
when typing
:
or=
,provide available complete item according by it typebool -> True and False
str -> ""
list -> []
dict -> {}
Union -> each item
schema -> pkg.schemaName {}
If you have more feat, welcome for your feedback