[folding] Format large file unfold all code
@aeschli is already working on this.
Since Jun 1, 2026.
Assessment
This issue has not been assessed yet.
Description
Version: 1.122.1 (user setup)
Commit: 8761a5560cfd65fdd19ce7e2bd18dab5c0a4d84e
Date: 2026-05-29T09:25:37+02:00
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200
Steps to Reproduce:
- run below py to create example files
with open("example.js", "w") as f:
f.write("const bigClass = (function () {\n")
for i in range(30):
f.write(f" function function{i}() {{\n")
for j in range(100):
f.write(f" console.log('function{i} - line{j}');\n")
f.write(" }\n")
f.write("}());\n")
with open("example.py", "w") as f:
f.write("def bigFunction ():\n")
for i in range(30):
f.write(f" def function{i}():\n")
for j in range(100):
f.write(f" print('function{i} - line{j}')\n")
f.write("\n")
f.write("\n")
- run command "Fold level 2"
- format
- all code unfolded
python file:
- cursor will move to end of the line
- cant reproduce without run the script again (caching?)
js file:
- cursor will move to end of the file
- can reproduce by adding some extra spaces then format
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.9k
- PR merge metrics
- PR metrics pending
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.
More from microsoft/vscode
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
new release
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in microsoft/vscode
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·