我在 Go 模板操作中使用逗号
metadata:
name: {{ $route.name }}-route
annotations:
konghq.com/strip-path: {{ default true $route.stripPath | quote }}
{{- if ne (len $route.plugins) 0 }}
{{- $pluginsString := join "," $route.plugins }}
konghq.com/plugins: {{ $pluginsString | quote }}
{{- end }}
然后“错误”/“损坏的语法”传播到文件的其余部分,基本上以相同的颜色显示所有内容,这非常烦人。
有没有办法防止逗号破坏 VS Code 中的语法高亮?