Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Peefy opened this issue Jun 21, 2024 · 0 comments · Fixed by #1448
Assignees
Labels
lsp semantic Issues or PRs related to kcl semantic and checker tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc.

Comments

@Peefy
Copy link
Contributor

Peefy commented Jun 21, 2024

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

@Peefy Peefy added semantic Issues or PRs related to kcl semantic and checker tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc. lsp labels Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lsp semantic Issues or PRs related to kcl semantic and checker tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants