Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@kittaakos

Description

@kittaakos
Issue body actions

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.