Skip to content

Save as native file dialog pops when enabling auto-save on a temp sketch #994

Closed
@kittaakos

Description

@kittaakos

Describe the problem

When I disable the auto-save, then enable it in a temp sketch, then the native save as file dialog pops. I think it should not.

A temp sketch is a sketch that is not saved to directories#user location.

To reproduce

  • Open a new sketch but do not touch it!
  • Open settings and make sure auto-save is disabled.
  • Enter one space to the end of the file.
  • Open settings and enable auto-save.
  • Hit OK.
  • Native file dialog pops.

Expected behavior

It should not. IDE2 should know it's a temp sketch and should not prompt the save as dialog.

Problem: by default, Theia saves the editor when this setting/preference is changed, and the new auto-save value "is enabled".

Arduino IDE version

Version: 2.0.0-rc6-nightly-20220519 Date: 2022-05-19T03:30:29.656Z CLI Version: 0.21.0 [10107d24] Copyright © 2022 Arduino SA

Operating system

macOS

Operating system version

12.3.1 (21E258)

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions