bridge-core / editor

Next generation of bridge., the Minecraft Add-On editor
https://editor.bridge-core.app
GNU General Public License v3.0
141 stars 41 forks source link

3 settings clashing (WHILE ON) #1003

Open Speshultee opened 11 months ago

Speshultee commented 11 months ago

Summary I love using the [autosave], [Format on Save] and [bridge. Predictions] features but the Format on Save breaks the prediction box upon saving.

Scenario of combining the features:

I'm writing and the editor opens a prediction box. I normally sift through the list when I'm unsure of the function or parameter and while looking through the list, the editor saves the file, closes the prediction box and detaches the cursor from the screen. Now, there's no way to re-open the prediction box unless you delete the object or in some cases, the whole line.

To Reproduce Steps to reproduce the behavior:

  1. Turn on these 3 features:
    • "Autosave"
    • "Format on save"
    • "bridge. Predictions"
  2. Go to a file where bridge will try to open a prediction box. JSON or mcfunction files work very well.
  3. Edit the file in attempt to bring up the prediction box.
  4. Let the editor save the file with the prediction box open.
  5. Observe the prediction box disappear and the cursor relocate upon saving.

Observed behavior I was writing and a prediction box opened up so I stopped to look through the list. As explained in the scenario above, when the file saved, the prediction box disappeared and my cursor relocated. I also noticed that the prediction box wouldn't appear again upon relocating my cursor at the end on the line, even after pressing space and deleting once and actions reversed. I normally have to delete and retype the previous word to open the prediction box again.

Expected behavior I believe that when the editor saves the file, it should keep the prediction box open and keep the cursor located at its current position. It currently makes for a mildly frustrating time.

Additional context I currently choose to manually save my files until the issue is fixed because I'm fairly new to the Minecraft libraries and need to use the prediction box in most cases. I really hope this gets resolved soon and would love to use all these features together! I have no other issues to report.

outercloudstudio commented 11 months ago

Thank you for reporting. I'll try and have this fixed in 2.7.1.