microsoft / microsoft/monaco-editor

[Bug] In the diffEditor, how can I fold the code? I set folding, but it is not working.

Open
#4,749 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug diff-editor
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?
Monaco Editor Playground Link

For example, this playground example:

https://microsoft.github.io/monaco-editor/playground.html?source=v0.52.0#XQAAAAK3AgAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscw2Q7JuXzf4wOPUi0R0mEihWCV4AhRfW6uUIEjM4eMvAbZI_ndkDYXEISJ_3UET0NgoihA4mcEj9Ni37vPzVWgd9TU--3yatFDbhWOHm7eMRejX4KZ0erHrn0PM8nvWU_vJpHLjIfpGPNyouUW-PaQ-x0ZRqgdg1QI3jA7EG1FhRs9x3Glw3aErwQ_no7EmiTq7a5o0tZsRe7Cn5_8B3WDgffEpdAE4P_R8w-OZP6q3nQ2QMq-W_CQ9Uylwgc2189hlLlEP4h30plHiRnEVM1T9IpFwYspA3VhBUIkfbDToRB9LFNQmp-njvttqezc3h5VR1C87FRHFCgb0WimLICMEXp0hCsI2OQA0yWDa-PaUDr2cmCiE7IEdgOz0W9wBt0WxG4NHDuBYV2wtYLG29ixTq-B__Y7JnU

Monaco Editor Playground Code

Reproduction Steps

No response

Actual (Problematic) Behavior

I cannot fold the 'bb' line.

Expected Behavior

I want to fold the 'bb' line

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked Monaco Editor Playground example and inspect how the diffEditor and folding settings are configured. Reproduce the inability to fold the “bb” line; done means identifying whether the playground configuration supports folding and documenting a confirmed fix or the missing reproduction details.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.