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.

Bug with undoing changes - deletes the history of changes!

See original GitHub issue

Bug with undoing changes - deletes the history of changes!

Steps to reproduce:

  1. I type the template string with $ {dd} in it
  2. Delete the dollar stamp $
  3. I type something else in the code
  4. Undo changes - do Ctrl + Z
  5. Undo gets stuck - I can’t undo or redo changes It deleted the history of changes!

Steps on the gif: template string extension bug2

This is very painful because, for example, I check the previous version of something (undo), then I want to go back to the newest (redo) and they can’t, my work has been wasted!

For now, I am disabling the extension because it is dangerous.

Solution: An extension shouldn’t fire its function when you use undo/redo, but just like manually typing or pasting the code.

  • There is probably also a problem with overwriting history when typing normally - because deleting $ itself also blocked the history (undo).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
meganroggecommented, May 24, 2021

done - it’s removed as of the next version. probably the right call, thanks for bringing this to my attention

2reactions
meganroggecommented, May 24, 2021

Yeah I think you’re right. I’ll consider what to do, but might remove it entirely.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto closing tags - Bug with undoing changes - GitHub
It deleted the history of changes! This is very painful because, for example, I check the previous version of something (undo), then I...
Read more >
Fix: "We Couldn't Complete the Updates Undoing Changes ...
Fix: “We Couldn't Complete the Updates Undoing Changes” Error on Windows · 1. Boot Windows in Safe Mode · 2. Clear Software Distribution...
Read more >
BUG: Undo undoes 1 character at a time, unlike every other ...
It will undo 1 character at a time – which is terrible, since it takes forever, then you overshoot, and it starts undoing...
Read more >
Undoing Changes Made to Your Computer: 7 Solutions to use
If the system is undoing changes made to your computer in Windows 11, that means the update process failed. Learn how to solve...
Read more >
We couldn't complete the updates. Undoing changes. Don't
We couldn't complete the updates. Undoing changes. Don't turn off your computer. · 1- Open the Control Panel and click the Windows Update...
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