Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File > Upload Files... should always be enabled + always upload into workspace root #5739

Closed
jankeromnes opened this issue Jul 17, 2019 · 5 comments · Fixed by #13775
Closed
Assignees
Labels
enhancement issues that are enhancements to current functionality - nice to haves filesystem issues related to the filesystem help wanted issues meant to be picked up, require help
Milestone

Comments

@jankeromnes
Copy link
Member

Description

I was recently confused to find the File > Upload Files... menu entry disabled (greyed out).

Only after messing around for a while did I notice that I had to select a directory in the File Tree panel for the feature to be enabled. In my mind, the File menu should not be influenced by the state of the File Tree panel.

For example, in Cloud9, File > Upload Files... was always enabled, and it always uploaded to the workspace root, regardless of which files or directory was currently selected in the File Tree -- only the File Tree context menu was able to upload into different locations.

Reproduction Steps

  1. Open any project in Theia
  2. Click on File
  3. Try to click on Upload Files..., be confused because it's disabled and you're not sure why

OS and Theia version: Mac OS, Firefox Nightly, latest Theia

Diagnostics: (none)

@akosyakov akosyakov added enhancement issues that are enhancements to current functionality - nice to haves filesystem issues related to the filesystem help wanted issues meant to be picked up, require help labels Jul 17, 2019
@qx220
Copy link

qx220 commented Jul 23, 2019

I made a working demo:

qx220@81e69f2

It handles file upload menu item with the following strategy:

  • if current selection is undefined, then upload to workspace root folder
  • if current selection is a regular file, then upload to its containing folder

@akosyakov
Copy link
Member

@qx-juilliard please propose a PR if you want a review, you can make it a draft (or WIP) if you want to check the design first

@qx220
Copy link

qx220 commented Jul 23, 2019

will do!

@federicobozzini
Copy link
Contributor

Was this issue fixed by this commit #11756 ?

@vince-fugnitto
Copy link
Member

Was this issue fixed by this commit #11756 ?

@federicobozzini it doesn't look like there is a default case where it'll upload to the workspace root, a selection is still needed in order for the command to be enabled, while #11756 only handles visibility.

@jonah-iden jonah-iden self-assigned this Jun 6, 2024
@jfaltermeier jfaltermeier added this to the 1.51.0 milestone Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that are enhancements to current functionality - nice to haves filesystem issues related to the filesystem help wanted issues meant to be picked up, require help
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants