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

JSON sometimes doesn't have folding arrows. #664

Open
wymli opened this issue Jun 24, 2024 · 1 comment
Open

JSON sometimes doesn't have folding arrows. #664

wymli opened this issue Jun 24, 2024 · 1 comment

Comments

@wymli
Copy link

wymli commented Jun 24, 2024

What I see

I found that in my local development environment, there is no collapse arrow in front of some variables.
image

What I expect

I found that in online demo env(https://uiwjs.github.io/react-codemirror/#/extensions/languages), it works well.
image

How I use it

import CodeMirror from '@uiw/react-codemirror'; // https://github.com/uiwjs/react-codemirror
import { githubLight } from '@uiw/codemirror-theme-github'; // https://uiwjs.github.io/react-codemirror/#/theme/data/github/light
import {
  loadLanguage,
  langNames,
  langs,
} from '@uiw/codemirror-extensions-langs';

<CodeMirror
  value={data}
  readOnly={true}
  height="80vh"
  width="90vw"
  extensions={[githubLight, loadLanguage('json')]}
/>
"@uiw/codemirror-extensions-langs": "^4.22.2",
"@uiw/codemirror-theme-github": "^4.22.2",
"@uiw/react-codemirror": "^4.22.2",

Reproduce

codesandbox
Thanks in advance!

@jaywcjlove
Copy link
Member

@wymli I did encounter this issue during testing, but I haven't identified the cause yet.

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

No branches or pull requests

2 participants