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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Array/property length in JSON code fold widget #1861

Merged
merged 1 commit into from Dec 20, 2019
Merged

Add Array/property length in JSON code fold widget #1861

merged 1 commit into from Dec 20, 2019

Conversation

develohpanda
Copy link
Contributor

@develohpanda develohpanda commented Dec 20, 2019

Closes #1799.

As per title, notes are in the issue 馃槃

The code being used is the same as used by the code-folding example in CodeMirror docs, which I added and was reviewed by the maintainer of CodeMirror. On his suggestion, the changes to the core library were minimal (allow for the widget to be a callback), with the actual logic to be defined by consumers.

Copy link
Contributor

@gschier gschier left a comment

Choose a reason for hiding this comment

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

Woah, this is awesome! Glad we can finally close this one off 馃挮馃

@gschier gschier merged commit f920ba1 into Kong:develop Dec 20, 2019
@Juanpam
Copy link

Juanpam commented Dec 22, 2021

This is no longer working on the latest insomnia version :(

Version: Insomnia 2021.7.2
Release date: 12/9/2021
OS: Darwin x64 20.6.0
Electron: 11.2.3
Node: 12.18.3
V8: 8.7.220.31-electron.0
Architecture: x64
node-libcurl: libcurl/7.73.0 OpenSSL/1.1.1k zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 libidn2/2.1.1 libssh2/1.9.0 nghttp2/1.42.0

@nielsdw
Copy link

nielsdw commented Aug 29, 2022

I confirm it does not work for lists, it works for dicts only.
Version: Insomnia 2022.4.2
Build date: 6/22/2022
OS: Linux x64 5.15.0-46-generic
Electron: 18.1.0
Node: 16.13.2
V8: 10.0.139.15-electron.0
Architecture: x64

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.

Feature request: In json response show the size of array
4 participants