arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.07k stars 353 forks source link

fix: copy example with `.pde` main sketch file #2381

Closed kittaakos closed 2 months ago

kittaakos commented 2 months ago

Motivation

Fix the examples opening with the .pde main sketch file extension.

https://github.com/arduino/arduino-ide/assets/1405703/04467b9a-ac07-4d9d-8358-6e3608bd9be4

Change description

Do not assume the .ino extension for the main sketch file when copying a sketch.

Other information

Closes arduino/arduino-ide#2377

Reviewer checklist