Skip to content

Theia runs save on app startup if "editor.autoSave": "on" is configured in the settings.json #8722

@kittaakos

Description

@kittaakos

When I have the following settings.json in my workspace and the app starts, a save event will be fired from the editor commands:

settings.json:

{
  "editor.autoSave": "on"
}

this.editorPreferences.onPreferenceChanged(e => {
if (e.preferenceName === 'editor.autoSave' && e.newValue === 'on') {
this.shell.saveAll();
}
});

Theia incorrectly assumes there was a preference change, but there wasn't. Auto-save is enabled by default, so I would expect the exact same behavior when I have an empty settings.json or one with "editor.autoSave": "on".

Steps to Reproduce:

Additional Information

  • Operating System:
  • Theia Version:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbugs found in the application

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions