-
Notifications
You must be signed in to change notification settings - Fork 56
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
"Initialize VS Code project..." generates invalid json with only one hxml #47
Comments
I think that happens only if the file name is exactly |
I don't think so, I just tried with |
But it's a valid JSON for vscode... |
But yeah, maybe we should be smarter than that and use that cjson library to generate a proper commented json. |
Yeah, but it still works :) Anyway, I kind of want vscode to provide API for working with these JSONs. There's a parser library, but it doesn't handle writing and doing that ourselves doesn't sound right to me... |
If there's only one build.hxml, the command generates this:
Notice the trailing comma after
["build.hxml"]
. This leads to a "Value expected" error when viewing the file in VSCode.If there are two
.hxml
files, the generated json is valid:The text was updated successfully, but these errors were encountered: