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

adds ndjson language support extension #4043

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

dimitropoulos
Copy link
Contributor

@dimitropoulos dimitropoulos commented Sep 21, 2021

When providing an answer in #3786 (comment) I realized that we'd benefit from just including this extension.

Our database files are newline-delimited JSON (http://ndjson.org/), the native format of NeDB.

BEFORE AFTER
annoying prompt:
Screenshot_20210921_141455
~no annoying prompt~
no language support:
Screenshot_20210921_141618
language support:
Screenshot_20210921_141546

It's often enough, at least for me, that I look at a data file, so I thought this would be useful to others as well.

{
"files.associations": {
"*.db": "ndjson",
"*.jsonl": "ndjson",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in case anyone else is/was curious ndjson/ndjson.github.io#1 (comment) shows the relationship between JSON Lines and ndjson.. lol... what's that xkcd for this, again?

@@ -0,0 +1,7 @@
{
"files.associations": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a copy-pasta from what's in the docs for the plugin https://github.com/AdrieanKhisbe/vscode-ndjson

Arguably, the .db entry is the only one we need, but I figured it can't hurt to keep the other ones, too.

@dimitropoulos dimitropoulos enabled auto-merge (squash) September 21, 2021 21:01
@dimitropoulos dimitropoulos merged commit 0333bf6 into Kong:develop Sep 21, 2021
@dimitropoulos dimitropoulos deleted the feat/ndjson branch September 21, 2021 23:36
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.

3 participants