Closed sigmaaa closed 2 months ago
The changes encompass improvements to the ESP-IDF tooling in Eclipse, focusing on enhancing usability and efficiency. These updates aim to streamline the development workflow by refining the launch configuration process for readability and performance, introducing methods to find existing and debug launch configurations, and updating project handling logic to facilitate easier management and debugging of IoT projects.
File Path | Changes |
---|---|
.../idf.core/.../LaunchConfigFinder.java .../idf.core.test/.../LaunchConfigFinderTest.java |
- Introduced LaunchConfigFinder class for finding launch configurations based on descriptors and identifiers.- Added test cases for LaunchConfigFinder class to validate configuration retrieval methods. |
.../idf.launch.serial.core/.../IDFCoreLaunchConfigProvider.java |
- Refactored getLaunchConfiguration method for efficiency and readability.- Added findExistingLaunchConfiguration method. |
.../idf.ui/.../NewIDFProjectWizard.java |
- Added import for LaunchConfigFinder .- Replaced DisposeListener with lambda expression.- Updated logic in performFinish method for debug configurations. |
Among the code's branches, a rabbit did play,
π Refactoring with joy, making improvements all day.
π± Efficiency bloomed, like flowers in the spring,
π Debug configurations, a useful thing.
"Streamline the workflow," the rabbit did sing,
π IoT development made easier with each swing.
π "Our work here is done," it proclaimed with a grin!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@AndriiFilippov Could you please check this?
@sigmaaa hi !
Tested under: OS - Windows 10 ESP-IDF: v5.1.2
Followed steps from description -> don't see duplicates are created, config name stay same. able to build - debug.
LGTM π
Description
Steps to reproduce for me:
The problem happens because the default launch config is removed during project deletion and then we can't find it in a map always creating duplicates of the original one. Fixed by looking for existing config via launch manager first before creating a new configuration. Fixes # (IEP-1187)
Type of change
Please delete options that are not relevant.
How has this been tested?
Test Configuration:
Dependent components impacted by this PR:
Checklist
Summary by CodeRabbit
performFinish
method for better clarity in the project creation wizard.LaunchConfigFinder
class.