The project created for Arduino was changed to compile with ESP-IDF

Hello, I created a project to be compiled on the Arduino platform.

The first time it managed to compile, but then the IDE changed the bottom toolbar to ESP-IDF compilation mode.

I’m trying to understand how a project (ESP32-serial-flasher) made for ESP-IDF can be compiled into the Arduino framework.

For this I am remodeling some files copied from the ESP-IDF project, which was written in C. But the Arduino platform uses C++;

What can I do to prevent the IDE from automatically changing the compilation framework?

I ended up discovering that just disabling the IDF extension would stop what was happening.