Repository navigation
fix(desktop): add a context menu to the sidebar root folder - #4754
Merged
Merged
Conversation
The root project folder title had no contextmenu handler, so right- clicking it did nothing — there was no way to create a file or directory at the project root (the only workaround was right-clicking a file that already lived at the root). Wire the root title to set the active item to the project tree and open the sidebar context menu, mirroring the existing per-subfolder handler in treeFolder.vue. Fixes #1239 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Right-clicking the root project folder title in the sidebar did nothing, so there was no way to create a file or directory at the project root. The only workaround was right-clicking a file that already lived directly at the root (which set the active item so New File/New Directory resolved to the root dir).
Sub-folders already wire
contextmenu→ set active item → open the sidebar context menu (treeFolder.vue). This applies the same pattern to the root folder title: on right-click it sets the active item to the project tree and opens the context menu.Verification
build:unpackclean (the change is a 1:1 mirror of the proven per-subfolder handler).Fixes #1239