question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature to disable auto save when clicking run the code

See original GitHub issue

Is your feature request related to a problem? Please describe.

I wonder if we can add option to disable auto-save when run the code or not provide it as default. It can be a checkbox above Run The Code button that disable saving.

Describe the solution you’d like

would it be good to add save button that run function, instead of automating save when Run the code is clicked.

for people who don’t need or use it, because for example we use Text-editor, and testing people code from the forum we can disable it.

but the people who need it should know about, so they don’t lose their code because they didn’t click Run the Code before closing the tab, we can disable auto save when clicking Run the Code and add a shiny button that saves instead.

image

Describe alternatives you’ve considered

and I hope to make it will be something resembles codepen save button later, but with different options like a toggle Save on click Run the code, or disable save for a day, preview your code in a modal, open console in modal,
image

Additional context

I am not saying disable auto save entirely, I just think people who don’t need or use it can disable it. and people who need it but leave the editor before clicking Run The Code have an option to save their code.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
moT01commented, May 18, 2022

Just test in an incognito window or browser where you are signed out.

1reaction
moT01commented, May 18, 2022

No, we do not have auto-save

Quite sure it works like this: -save button -> saves to savedChallenges -run tests -> saves to local storage - there may be some improvements around that we can make - specifically, when we should clear it -submit challenge -> saves to savedChallenges and completedChallenges + clears local storage

-loading code -> looks in savedChallenges for code first, then local storage

for people who don’t need or use it, because for example we use Text-editor, and testing people code from the forum we can disable it.

So what’s happening for you @Sboonny, is you test someones code -> click run -> it saves to local storage. You must not have anything saved for that challenge in the database, so it loads the local storage. I believe this (local storage behavior) is the same as any of the other challenges, you maybe just don’t really notice cause you’re tending to an influx of issues around the new cert projects - and most other challenges are a few lines of code. The JS cert projects would be the other place you would notice it pretty good.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable auto-save in a model-driven app - Microsoft Learn
Disable auto -save for a form · Select OK to close the Form Properties dialog. · Select Save and Close to close the...
Read more >
How do I disable Visual Studio Code auto save - Stack Overflow
Go to File-> Preferences ->settings. choose your auto save option from commonly used settings enter image description here.
Read more >
Just Disable Autosave in the Block Editor – Coding Corner
In our custom workflow plugin, every revision matters, so I needed to disable the autosave feature in WordPress.
Read more >
How to toggle Auto Save in VS Code - Kindacode
To turn on or turn off the Auto Save feature in Visual Studio Code, go to File and click on Auto Save from...
Read more >
WordPress Autosave: How to Use, Change, Enable, & Disable ...
Another way to modify the autosave settings in WordPress is to edit the functions.php file for the theme you're using. Adding custom code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found