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

[BUG] Collapsed code regions always expand on code run #654

Open
Siddharth11 opened this issue Oct 23, 2024 · 3 comments
Open

[BUG] Collapsed code regions always expand on code run #654

Siddharth11 opened this issue Oct 23, 2024 · 3 comments

Comments

@Siddharth11
Copy link

Version 3.0.3 (3.0.3)

Whenever I trigger a code run, all the collapsed code regions automatically expands.
For a large script with multiple functions, it gets a bit annoying find the relevant code bit

example 👇

code-expand-run-js.mp4
@Siddharth11 Siddharth11 changed the title Collapsed code regions always expand on code run [BUG] Collapsed code regions always expand on code run Oct 23, 2024
@lukehaas
Copy link
Owner

@Siddharth11 do you have format on run enabled?

@Siddharth11
Copy link
Author

Yes, I have enabled it. But should that expand my code?

I was expecting this "format on run" to behave similar to "format on save" of VSCode, where it formats my code, but doesn't touch any other parts (local editor state ?) of it

@lukehaas
Copy link
Owner

The formatter in VSCode does diffing and only updates the parts of the code that have changed. The formatter in RunJS is not that advanced. It replaces the whole code every time.

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