-
Notifications
You must be signed in to change notification settings - Fork 257
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
Inconsistent way to generate whole property snippet and value snippet, when it contains \" #353
Comments
Signed-off-by: Yevhen Vydolob <[email protected]>
* #353 remove escape character from default values Signed-off-by: Yevhen Vydolob <[email protected]> * Remove unnecessary escaping Signed-off-by: Yevhen Vydolob <[email protected]>
Hi, I just tried YAML extension v0.18.0, and unfortunately, I still reproduce the issue :( |
@fbaligand Sure, that strange. Can you share schema where you have this? |
Hi @evidolob, Thanks for reopening the issue. My test schema to reproduce this issue is exactly the schema I provided in issue description. {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"property1": {
"type": "string",
"default": "\"mydefault\""
}
}
} |
That said, to reproduce the issue, all characters are important:
|
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
@evidolob |
@fbaligand Yes you can follow this https://github.com/redhat-developer/vscode-yaml/blob/master/CONTRIBUTING.md#developing-the-client-and-server-together to build and run |
Given that I have this property:
If I write
property1:
and ask completion (Ctrl+tab), then choose first option, I get this generated:property1: "mydefault"
That is nice.
But if I write
property1
and ask completion (Ctrl+tab), then I get this generated:property1: \"mydefault\"
So the second case is inconsistent and is an issue.
Could you fix it?
The text was updated successfully, but these errors were encountered: