kcl-lang / kcl

KCL Programming Language (CNCF Sandbox Project). https://kcl-lang.io
https://kcl-lang.io
Apache License 2.0
1.41k stars 110 forks source link

[Enhancement] Enhance the completion experience of KCL Import for both internal and external packages #1429

Closed Peefy closed 6 days ago

Peefy commented 1 week ago

Enhancement

For the following module

.
├── kcl.mod
├── kcl.mod.lock
├── main.k
└── tt
    └── tt.k

The content of kcl.mod is

[package]
name = "m"
edition = "v0.9.0"
version = "0.0.1"

[dependencies]
k8s = { oci = "oci://ghcr.io/kcl-lang/k8s", tag = "1.29" }

The import stmt in main.k should be enhanced

image

The completion items should contains tt and k8s