fix(desktop): prevent duplicate panes when file-open mode is new-tab#3115
fix(desktop): prevent duplicate panes when file-open mode is new-tab#3115AviPeltz wants to merge 2 commits into
Conversation
…n mode Decouples the reuse-existing-pane lookup from the openInNewTab flag so that an already-open file is always located first. The pane is still only reused in-place when openInNewTab is false, preventing duplicate panes when the user's file-open mode is set to "new-tab".
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughMultiple files underwent import statement reordering and code formatting refinements. One file's logic was simplified by adjusting conditions for file-viewer pane reuse, removing an intermediate variable while maintaining behavioral equivalence through updated conditional gates. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary
Test plan
bun run lintSummary by cubic
Prevents duplicate file viewer panes when the file-open mode is set to “new-tab.” We now always find an already-open file first and only reuse it in-place when not opening in a new tab.
openInNewTab, so existing file viewer panes are always found first.openInNewTabis false andreuseExistingis not"none", avoiding duplicates across open modes.Written for commit 6c17549. Summary will update on new commits.
Summary by CodeRabbit