fix(files): stop validating .jsonl as single-document JSON (#6490)

This commit is contained in:
Waleed
2026-08-10 08:48:32 -07:00
committed by GitHub
parent af1aaa898a
commit c051c593b4
@@ -264,7 +264,12 @@ const MONACO_LANGUAGE_BY_EXTENSION: Partial<Record<string, string>> = {
graphql: 'graphql',
gql: 'graphql',
json: 'json',
jsonl: 'json',
/**
* Not `json`: JSON Lines holds one value per line, which Monaco's
* single-document parser flags as invalid. Validation is global
* (`jsonDefaults`), so opting JSONL out is the only per-file lever.
*/
jsonl: 'plaintext',
yaml: 'yaml',
yml: 'yaml',
toml: 'toml',