[x] Syntax incompatibility upgrades lead to errors(: and = in base and stack)
[x] Goto definition failed in main.k(Can't find ast node from position due to config merge(preprocess in resolver)) #675
[x] Conflict between pkg var and for loop local var.
[x] Schema document only contains the header not include the schema attr. #621
[x] Dot completion #614
[x] Attr position err #674
[x] Unused import #686
[x] config expr complete
[x] ConfigEntry and ConfigIfEntry #687
capabilities = option("params").capabilities or ["SETUID", "SETFCAP"]
items = [item | {
if item.kind == "Pod":
spec.containers: [{
"securityContext": {"capabilities": {"add" += [c] if c not in (container?.securityContext?.capabilities?.drop or []) else [] for c in capabilities}}
} for container in item.spec.containers]
} for item in option("items")]
[x] go to definition failed in base.k (appops/guestbook/base/base.k, Line 7) Can't find ast node from position due to config merge(preprocess in resolver)
Enhancement
TODO List
kind[0].lower() # kind[0] is the string type
feat:
[x] More precise lookup and goto definition
a.b.c
, find definition ofa
,b
andc
, instead ofa.b.c
#608[x] hover enhance: doc parse and better organization of presentation content #621
[x] diagnostics enhance for conflict attr #646
[x] Intelligent perception display of function icons and documents for members of str type.
[x] kcl-language-server version show versions
[x] refactor functions:
[x] The completion of map key.
[x] Additional error plugin installation dependencies or instructions. https://github.com/KusionStack/kcl-lang.io/pull/96
[x] Hover for SchemaAttr AST Node
[x] Go to definition for lambda arguments
638
646
652
release: https://github.com/kcl-lang/kcl/issues/602
bugfix:
:
and=
in base and stack)params = option("params") toMatch = params.toMatch toAdd = params.toAdd items = [item | {
If all annotations are matched, patch more annotations
if all key, value in toMatch { item.metadata.annotations[key] == value }: metadata.annotations: toAdd } for item in option("items")]
releated issues
https://github.com/kcl-lang/kcl/issues/634
https://github.com/kcl-lang/kcl/issues/635
[x] The variable to the right of a continuous logical expression
a and b
a and b or c
does not have hovering information.app
gotapp:
[x] Completion for the optional chain operator
?.
[x] Wrong completion item for check colon
:
https://github.com/kcl-lang/kcl/pull/946kind[0].lower() # kind[0] is the string type
strategy
after the if config block. https://github.com/kcl-lang/kcl/pull/1027[x] Wrong completion for the schema check
:
char https://github.com/kcl-lang/kcl/pull/1057[x] No completion for the schema check
?.
char https://github.com/kcl-lang/kcl/pull/1030.
e.g.c
,o
,co
[x] No hover information for the if config block. https://github.com/kcl-lang/kcl/pull/1018
[x] No hover information for the internal schema scope variables that are not the schema attribute. https://github.com/kcl-lang/kcl/pull/1014
[x] Wrong definition for the local variable in lambda https://github.com/kcl-lang/kcl/pull/1048