Skip to content

Commit 9c4a83a

Browse files
committed
fix: view > collapse all not working as expected
1 parent 90a8042 commit 9c4a83a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/extensions/default/CodeFolding/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ define(function (require, exports, module) {
252252
var editor = EditorManager.getFocusedEditor();
253253
if (editor) {
254254
var cm = editor._codeMirror;
255-
CodeMirror.commands.foldToLevel(cm);
255+
CodeMirror.commands.foldAll(cm);
256256
}
257257
}
258258

0 commit comments

Comments
 (0)