Workbench icon indicating copy to clipboard operation
Workbench copied to clipboard

Run should rerendere the preview even if there is no code

Open sonnyp opened this issue 1 year ago • 4 comments

Currently we "return" if there is no code.

But we should at least rerender the preview in case auto reload is diabled.

sonnyp avatar Jan 29 '24 16:01 sonnyp

Was working on it. Is replacing the empty source code with placeholder empty functions or comments a viable solution? If yes, then I have it ready.

urffsamhunt avatar Mar 19 '24 18:03 urffsamhunt

I don't understand the question. Do you want to open a draft PR? Maybe that will clarify.

sonnyp avatar Mar 19 '24 18:03 sonnyp

Okay, I will send a PR by tomorrow

urffsamhunt avatar Mar 19 '24 18:03 urffsamhunt

I could make it work by simply passing a comment for the 'text' var but for Vala, Rust and Python, had to edit the text buffer which also reflects in the source code whenever you press run (line 275 in PR). Perhaps a better solution would be to directly manipulate the compiler calls?

urffsamhunt avatar Mar 23 '24 03:03 urffsamhunt