microsoft / microsoft/monaco-editor
[Bug] Codicon not loading for expand/collapse in 0.38.0v
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Reproduction Steps
I tried updating the version of monaco-editor from 0.22.0 to 0.38.0 and also updated the monaco-webpack-plugin to the latest version. The issue is that the codicon icon for expanding and collapsing a codeblock is not loading instead it shows a placeholder rectangle box.
I saw that in earlier version It used to use the icons but now it is using unicodes. All the places where the unicodes are being used are rendering properly like find and replace tool but only this is not working as expected.
Nextjs
Webpack 5
Attached the image for reference.
Actual (Problematic) Behavior
Instead of the codicon icon for collapse and expand the placeholder icon is rendering.
Expected Behavior
The arrow icons should render.
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report in a Next.js/Webpack 5 app using monaco-editor 0.38.0, then compare codicon loading and expand/collapse rendering with 0.22.0. Trace the expand/collapse icon path and webpack integration; done means the arrow icons render instead of placeholder boxes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nextjs, webpack
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100