Skip to content

test: regression guard for renderer stack popup disposal#13675

Open
rodrigosf672 wants to merge 2 commits into
mainfrom
fix/new-folder-dropdown-dismiss
Open

test: regression guard for renderer stack popup disposal#13675
rodrigosf672 wants to merge 2 commits into
mainfrom
fix/new-folder-dropdown-dismiss

Conversation

@rodrigosf672
Copy link
Copy Markdown
Member

@rodrigosf672 rodrigosf672 commented May 20, 2026

Summary

  • Add vitest coverage for popup-inside-dialog disposal path (previously untested)
  • Test exposed missing bounds registration in PositronModalDialog -- fixed inline

Tests

  • npx vitest run src/vs/base/test/browser/positronModalReactRenderer.vitest.ts
  • New Folder wizard: dropdown dismissal does not close dialog (by either clicking outside of dropdown or outside of dialog). Preventing dialog closure when clicking outside of dialog (while dropdown is open) was addressed by commit ccc2aaa4.
  • Other context menus still close on outside click, as expected (either via 'Cancel' buttons or via clicking-outside dismissal)

@:new-folder-flow @:modal

Add vitest coverage for popup-inside-dialog disposal path (previously
untested). Test exposed missing bounds registration in
PositronModalDialog -- fixed inline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:new-folder-flow @:modal

readme  valid tags

…smisses

When a dropdown popup inside a dialog detects a click outside the entire
renderer stack, it previously called disposeAll(), which also destroyed
the parent dialog. Add hasPersistentParent() to detect when a dialog
(renderer with registered bounds) exists below the popup on the stack,
and in that case only dispose the popup itself.
@rodrigosf672 rodrigosf672 marked this pull request as ready for review May 21, 2026 18:43
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.

New Folder workflow breaks when user clicks outside of dropdown

1 participant