mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(files): stop validating .jsonl as single-document JSON (#6490)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user