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

feat: local JSON files #82

Merged
merged 2 commits into from
Jun 14, 2023
Merged

feat: local JSON files #82

merged 2 commits into from
Jun 14, 2023

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.

None yet

2 participants