-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
YAML Syntax highlignting doesnt include multiline scalars anymore #99025
Comments
Can you please provide a copy/paste-able example? |
sure ---
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-ingress-controller-customer-configmap
namespace: ingress-system
data:
values.yaml: |
service:
annotations:
metallb.universe.tf/allow-shared-ip: "10.27.50.35/32"
loadBalancerIP: "10.27.50.35" |
I can see the repro. This is very odd though, since the yaml grammar hasn't changed since 2017. It looks like this started with version 1.41. It looks like whatever grammar that GitHub is using does the same thing. @alexdima, before I spend more time looking into this, do you know of any changes vscode textmate that started with 1.41 that could have changed this? |
Yes, here is what steps I used to track them down.
If using tags to publish to From looking at those changes, this change mentions yaml explicitly -- microsoft/vscode-textmate#119 I can use the inspect tool to investigate. |
This appears to be correct. This is a direct consequence of the fix for microsoft/vscode-textmate#119 . It is expected that the fix for microsoft/vscode-textmate#119 changes this between VS Code versions. The new behaviour is aligned with how TextMate parses using this same grammar: So TL;DR the old version of vscode appears to look better, but it was wrong. |
Steps to Reproduce:
In previous versions vscode linted yaml in multiline scalars, now it doesnt anymore:
This happens without ANY plugins installed.
1.45.1
![image](https://user-images.githubusercontent.com/4894735/83263623-32b88380-a1bf-11ea-964a-5ce9c9e1d7d6.png)
1.39.1
![image](https://user-images.githubusercontent.com/4894735/83263568-1f0d1d00-a1bf-11ea-805b-b7fdd6f46a76.png)
It also happens with the insider build (e.g. 1.46)
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: