We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I validate auto-completion for a key that contain an array of objects, the snippet generated contains 2 extra spaces for each sub-key generated.
Here's an example in kubernetes.yml:
kubernetes.yml
Given that I have this file content:
metadata: ownerReferences
Then I go to end of ownerReferences, press Ctrl+Tab and [ENTER] to validate the suggested completion. I get this result:
ownerReferences
Ctrl+Tab
[ENTER]
metadata: ownerReferences: - apiVersion: kind: name: uid:
The problem is that "kind", "name" and "uid" keys have 2 extra spaces in front.
The text was updated successfully, but these errors were encountered:
Hi @fbaligand, can you share your settings for editor.tabSize?
editor.tabSize
Sorry, something went wrong.
Hi,
My editor.tabSize setting equals to 4. So I try to set 2, and so, don't reproduce the issue with this setting.
That said, YAML extension should align all keys of a list entry, whatever tab size.
Yes, it's a bug in template generation, going to fix that soon
Great!
redhat-developer#329 fix completion indentation for object in array
0ebc676
Signed-off-by: Yevhen Vydolob <[email protected]>
Fix completion indentation for object in array (#332)
0b2f7c5
* #329 fix completion indentation for object in array Signed-off-by: Yevhen Vydolob <[email protected]> * remove documentation check Signed-off-by: Yevhen Vydolob <[email protected]>
evidolob
Successfully merging a pull request may close this issue.
When I validate auto-completion for a key that contain an array of objects, the snippet generated contains 2 extra spaces for each sub-key generated.
Here's an example in
kubernetes.yml
:Given that I have this file content:
Then I go to end of
ownerReferences
, pressCtrl+Tab
and[ENTER]
to validate the suggested completion.I get this result:
The problem is that "kind", "name" and "uid" keys have 2 extra spaces in front.
The text was updated successfully, but these errors were encountered: