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

[Bug] Newline completion items loss the attribute that is defined in unification stmt of the schema stmt #1484

Closed
Peefy opened this issue Jul 10, 2024 · 0 comments · Fixed by #1516
Labels
bug Something isn't working lsp resolver

Comments

@Peefy
Copy link
Contributor

Peefy commented Jul 10, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

schema Metadata:
    name: str = name

schema Object:
    apiVersion: str
    kind?: str
    metadata: Metadata {name = "23"}

o = Object{
    
}

2. What did you expect to see? (Required)

The completion items is ["apiVersion", "kind", "metadata"]

3. What did you see instead (Required)

image

The completion items is ["apiVersion", "kind"] without the unification stmt in the schema stmt

4. What is your KCL components version? (Required)

v0.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lsp resolver
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants