Skip to content

Conversation

@skirtles-code
Copy link
Contributor

@skirtles-code skirtles-code commented Mar 27, 2023

This PR adds support for .json files. It includes adding them via the UI, syntax highlighting, and importing them within other files.

This line was a compromise:

mode?: string | { name: string, json: boolean }

It didn't work when I tried to use the correct type from CodeMirror, because of the union. I imagine it'll be possible to do this properly once the TS improvements in 3.3 are available.

@yyx990803 yyx990803 merged commit db076eb into vuejs:main Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants