Skip to content

ADFA-1724: Fix close plugin tab not working when it's the only open tab#927

Merged
hal-eisen-adfa merged 2 commits intostagefrom
ADFA-1724
Feb 5, 2026
Merged

ADFA-1724: Fix close plugin tab not working when it's the only open tab#927
hal-eisen-adfa merged 2 commits intostagefrom
ADFA-1724

Conversation

@Daniel-ADFA
Copy link
Contributor

No description provided.

@Daniel-ADFA Daniel-ADFA requested review from a team and dara-abijo-adfa February 4, 2026 20:50
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 4, 2026

📝 Walkthrough

Release Notes - ADFA-1724: Fix close plugin tab not working when it's the only open tab

  • Fixed plugin tab closure: Removed the restriction that prevented users from closing a plugin tab when it was the only open tab, improving flexibility in tab management
  • Optimized tab selection: Changed plugin tab creation to conditionally select the tab only if it is not already selected, eliminating redundant re-selection operations

Potential Considerations:

  • Behavioral Change: Users may now close all tabs, resulting in an empty editor view. Consider ensuring your UI gracefully handles the case when both file tabs and plugin tabs are empty
  • Fragment Lifecycle: When plugin tabs can be closed without restrictions, ensure all plugin fragments properly implement lifecycle management and cleanup to prevent memory leaks or state issues

Walkthrough

The pull request refines plugin tab management in the editor activity. Tab selection during plugin fragment attachment is now conditional, preventing redundant re-selection. The popup display logic is simplified by removing the restriction that prevented showing the popup with a single tab.

Changes

Cohort / File(s) Summary
Plugin Tab Management
app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.kt
Modified tab selection logic to conditionally select tabs only when not already selected, avoiding redundant re-selection. Removed check that blocked popup display when only one tab is open.
Build Configuration
build.gradle, build.gradle.kts
Build configuration updates (manifest files).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A hop through tabs, so neat and bright,
No double-selects, just smooth delight,
Pop-ups bloom where one tab stood,
Logic trimmed—refined and good! ✨

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive No description was provided by the author, making it impossible to assess relevance or quality of the explanation. Add a pull request description explaining the bug, the fix applied, and any testing performed to verify the changes work as intended.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title directly addresses the main fix: enabling plugin tab closure when it's the only open tab, matching the code changes that allow popup display in single-tab scenarios.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ADFA-1724

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Collaborator

@hal-eisen-adfa hal-eisen-adfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hal-eisen-adfa hal-eisen-adfa merged commit fbfa7ed into stage Feb 5, 2026
2 checks passed
@hal-eisen-adfa hal-eisen-adfa deleted the ADFA-1724 branch February 5, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants