Skip to content

fix: prevent hiding settings entry in DockContextMenu#201

Merged
antfu merged 1 commit intovitejs:mainfrom
SaKaNa-Y:patch-1
Mar 16, 2026
Merged

fix: prevent hiding settings entry in DockContextMenu#201
antfu merged 1 commit intovitejs:mainfrom
SaKaNa-Y:patch-1

Conversation

@SaKaNa-Y
Copy link
Copy Markdown
Contributor

Description

If Settings gets accidentally hidden, there’s no way to show it again.

  • Fix a bug where the Settings dock entry (~settings) could be hidden via the right-click context menu, with no way to
    show it again
  • The Settings view is the only UI for managing dock entry visibility, so hiding it creates a dead-end
  • Updated canHide() in DockContextMenu.ts to return false for the ~settings entry

Linked Issues

Additional context

@antfu antfu changed the title fix: Prevent hiding settings entry in DockContextMenu fix: prevent hiding settings entry in DockContextMenu Mar 16, 2026
@antfu antfu merged commit dea70a1 into vitejs:main Mar 16, 2026
@SaKaNa-Y SaKaNa-Y deleted the patch-1 branch March 16, 2026 06:57
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