-
Notifications
You must be signed in to change notification settings - Fork 222
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
Support for multiple YAML documents in single file #43
Comments
Hi! I've fixed this in the latest release, all features now work when you have multiple YAML documents in a single file |
I'm running Visual Studio Code versoin 1.21.1 and the excellent (Thank you!) YAML Support by Red Hat (0.0.11 !?). This issue says that support for multiple YAML files was fixed in November but, it appears to not be working for me. User error, a regression, or...?
As with the issue reporter, Kubernetes (uniquely?) uses this as a convenience in aggregating multiple correlated Kubernetes resources into a single file. |
Confirmed regression. 0.0.10 works perfect but its broken in 0.0.11. My guess is its because of this commit redhat-developer/yaml-language-server@808d7ed |
Actually I just realised that i'm facing a different issue then you. When I copy and paste it it works just fine. My only issue with it is that autocompletion isn't working on the root element of multi-document. Did you type out all of that or did you just copy and paste? |
I have several other Kubernetes deployment files that surface this issue. When I found this issue, I copied and pasted the example from above to provide a more obvious|consistent repro. |
I just tried on another computer and could not reproduce. @gorkem Are you able to reproduce this? |
Since I posted this, Visual Studio Code has updated (now: 1.22.1) but the problem persists. I'm running on Linux (Debian) and assume you may be using Mac OS. Perhaps that's a difference?
|
I've tried on both Linux (Fedora) and Mac OS and could not reproduce |
Can't repro either. I regularly use multiple YAML docs in a single file because that is how my generator works, did not have an issue with it in a while. |
Thanks for the help! I'll try it tomorrow |
Resolved :-( I had a conflicting YAML extension (that I'd forgotten I had installed). I disabled all extensions and reinstalled By a process of elimination, I identified When that's disabled, everything WAI. Apologies for wasting your time. |
No apologies needed. I'm just glad its working as expected 😄 |
…0.0.9 Updated error message for redhat-developer/yaml-language-server#42
Some of my Kubernetes yaml files are in form of:
it looks like the autocomplete/Ctrl+space is not working when there are multiple objects in a single yaml file.
Should this be supported?
The text was updated successfully, but these errors were encountered: