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

Unable to get suggestions without typing a specific order of parameters #705

Closed
1 of 4 tasks
mhalano opened this issue Feb 27, 2022 · 8 comments
Closed
1 of 4 tasks
Assignees
Labels

Comments

@mhalano
Copy link

mhalano commented Feb 27, 2022

Describe the bug

I'm trying to get suggestions to kind parameter. I want to get kind = Pod just typing "Po" and ctrl-space, but it says "no suggestions". I'm using apiVersion = v1. If I already type other root parameters, the kind parameter completes. Like, if I type metadata parameter and the kind, it works. If I start with kind (after apiVersion, of course) doesn't work. This is a problem because I use kind always a second root parameter.

Expected Behavior

Kind parameter should suggest "Pod" in the auto-complete when you type "Po".

Current Behavior

Appears "No suggestions" instead the "Pod" suggestion

Steps to Reproduce

  1. Start typing a small YAML file:
apiVersion: v1
kind: Po
  1. Try to auto-complete to get "Pod". It will get "No suggestions" instead.
  2. If you already typed another root parameter, should work:
apiVersion: v1
metadata:
  name: test
kind: Po
  1. Try to auto-complete to get "Pod". It will get "Pod" as a suggestion.

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
@mhalano mhalano changed the title Unable to use suggestions and auto-complete with core schemas Unable to get suggestions without typing a specific order of parameters Feb 27, 2022
@gorkem
Copy link
Collaborator

gorkem commented Feb 27, 2022

How do you map the YAML file to Kubernetes in your setup? This extension does not automatically map YAML files to be Kubernetes. Usually, either user configures the mapping or uses some extension that does this mapping.

@mhalano
Copy link
Author

mhalano commented Feb 28, 2022

@gorkem I have this snippet in my settings.json:

"yaml.schemas": {
    "kubernetes": "*.yaml"
}

@mhalano
Copy link
Author

mhalano commented Mar 2, 2022

@gorkem Were you able to reproduce my bug?

@gorkem gorkem added the bug label Mar 6, 2022
@gorkem
Copy link
Collaborator

gorkem commented Mar 6, 2022

Yes, I was able to reproduce.

@hefayed
Copy link

hefayed commented Mar 16, 2022

i am having same problem, not sure if you found a solution for this ?

@mhalano
Copy link
Author

mhalano commented May 27, 2022

Do we have any news about that?

@msivasubramaniaan
Copy link
Contributor

@mhalano This issue is resolved on the v1.8.0. Please check and confirm

@mhalano
Copy link
Author

mhalano commented Jun 11, 2022

@msivasubramaniaan I was able to test and confirmed the version 1.8.0 is showing the suggestions correctly. Thank you.

@hefayed if you update the extension it should be work now.

I'm closing this bug since it's solved. Thank you all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants