LSP icon indicating copy to clipboard operation
LSP copied to clipboard

Provide a way to save all modified files after applying workspace edits

Open rchl opened this issue 2 years ago • 1 comments

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

When applying refactorings (like renames) it's often the case that multiple files are modified. It's a chore to then have to find and save all those modified files.

Describe the solution you'd like

We could provide a dialog after more than one file was modified asking the user whether all modified files should be saved. Note that some people don't like dialogs (#1922).

Or maybe even show a "tree view" in a sheet, showing all modified files and allowing the user to navigate to them and save all at once.

Describe alternatives you've considered

  • Saving all edited files one by one.
  • Using "save all" command but that fails when there is some unsaved buffer in the window (for example I like to have some to keep notes in them)

rchl avatar Dec 04 '23 22:12 rchl

What about adding a setting, that lets LSP save all modified files without user interaction?

LDAP avatar Dec 05 '23 08:12 LDAP

There is a new setting refactoring_auto_save for more info see https://github.com/sublimelsp/LSP/pull/2433/files#diff-8465d3c31f1a4451c9df0a6b0cf825d36a589945777b9dd6f7142908800f2334R232

predragnikolic avatar May 03 '24 09:05 predragnikolic