arthwang / vsc-prolog

A VS Code extension that provides language support for prolog
MIT License
97 stars 21 forks source link

Dot repeat fires unintentionally #33

Open amongonz opened 5 years ago

amongonz commented 5 years ago

The "dot repeat" feature fires by itself after erasing or undoing the text. The latter is serious: it stops you from undoing any further (because it keeps typing the repeat) and makes you lose your redo history. In fact, holding down Ctrl-Z puts you in an undo-repeat loop.

The feature should listen for an explicit press of . instead, if possible.

amongonz commented 5 years ago

I've also found an issue where "dot repeat" fires in non-Prolog files. Do you want me to open a separate issue for that?

arthwang commented 5 years ago

Would you please give me an example to reproduce the issue? Thank you.

jcotton42 commented 4 years ago

I'm running into this as well. Just open an new empty and press ., the extension deletes it.

marceloslacerda commented 1 year ago

I just had this happen to me also. Uninstalling and reinstalling the extension made it stop happening.

marceloslacerda commented 1 year ago

It started happening again after only a few minutes of coding. I start cutting and pasting different rules of a body and then Ctr-Z starts putting a head clause everywhere. I'm on linux btw.