Skip to content
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

fix(languages): treat tsconfig.json as jsonc #12031

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aster-void
Copy link
Contributor

background:

tsconfig.json allow /* comments */ as well as trailing commas.

issue:

default tsconfig.json generated with tsc --init contains comments, so helix can't handle it correctly.

solution:

treat it as jsonc.
typescript repo has jsonc-parser in devDependencies, so it probably uses jsonc parser internally too. (though I couldn't find relevant code)

other text editors:

@the-mikedavis the-mikedavis added the A-language-support Area: Support for programming/text languages label Nov 8, 2024
@aster-void aster-void changed the title fix languages.toml: treat tsconfig.json as jsonc fix(languages): treat tsconfig.json as jsonc Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants