-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IEP-1090: Close the welcome page if opened when new project is created #1035
Conversation
WalkthroughThe changes introduce a new static method Changes
Poem
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self Review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/IDFUtil.java (2 hunks)
- bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/handlers/NewProjectHandler.java (2 hunks)
- bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/ManageEspIdfVersionsHandler.java (3 hunks)
Additional comments not posted (3)
bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/handlers/NewProjectHandler.java (1)
22-22
: LGTM! The welcome page closure is correctly integrated.The addition of
IDFUtil.closeWelcomePage
ensures that the welcome page is closed when a new project is created, aligning with the PR objective.bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/ManageEspIdfVersionsHandler.java (1)
19-19
: Refactoring and cleanup approved.The refactoring of
launchEditor
to useIDFUtil.closeWelcomePage
simplifies the logic and improves readability. The removal of unused imports is also a positive change.Also applies to: 41-41
bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/IDFUtil.java (1)
821-838
: New methodcloseWelcomePage
is well-implemented.The method correctly handles the closure of the welcome page using a synchronous UI thread execution. The null checks ensure robustness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@AndriiFilippov Please review |
@alirana01 @kolipakakondal hi ! |
This is about closing the welcome page when someone tries to create a new project, while this pull request is about closing the welcome page when you open the ESP-IDF Managers view. Most likely, these are two actions users perform when they first open the IDE. |
doesn't matter because both actions lead to "ESP-IDF: Manager". I have just checked the master branch - everything works how it should. |
@alirana01 hi ! Tested under: Do see the "Welcome" page closes if open "New Espressif IDE Project" ✅ LGTM 👍 |
Description
Close the welcome page if opened when new project is created
Fixes # (IEP-1090)
Type of change
Please delete options that are not relevant.
How has this been tested?
Keep the welcome page opened after installing tools and try creating new project. Welcome page should be closed
Test Configuration:
Checklist
Summary by CodeRabbit
New Features
Refactor
ManageEspIdfVersionsHandler
by simplifying the logic for managing the welcome page visibility.