dbeaver / dbeaver

Free universal database tool and SQL client
https://dbeaver.io
Apache License 2.0
39.17k stars 3.38k forks source link

"Autosave editor on close" checkbox works correctly only for sql, but not for other extensions (for example, txt-files) #34515

Closed ask9 closed 1 month ago

ask9 commented 2 months ago

Description

"Autosave editor on close" checkbox works correctly only for sql, but not for other extensions (for example, txt-files) Is it a feature or bug? Why should it depend on extension? Are there any other settings depended on extension?

DBeaver Version

Community Edition 24.1.1

Operating System

No response

Database and driver

No response

Steps to reproduce

  1. set the option "Autosave editor on close" to true
  2. open txt-file
  3. change file
  4. close the tab

Expected: I expected the same behavior as for sql-files (no confirmation about saving changes and autosave) Actual: there is a confirmation about saving changes

Additional context

No response

E1izabeth commented 2 months ago

These autosave settings are placed in SQL Editor page, which means that they are applied only for SQL Editor, not any other editors. You can check general Autosave setting here image

ask9 commented 2 months ago

I would rather suggest to move these group of "auto-save" settings from "only to sql-files" to "all files in spite of extension". I.e. move it from Editors -> SQL Editor, to User Interface -> Editors -> Autosave. Especially these options: Auto-save after any modification, auto-save editor on close.

Because autosave interval you suggest me is quite another option and it is also affects sql-files in a way I don't need.

arhayka commented 1 month ago

We discussed the issue with the team and decided that right now, everything is working as expected, and there is no need to change this behavior.