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

Useful commands not available from context menu #5946

Closed
lmcbout opened this issue Aug 14, 2019 · 29 comments
Closed

Useful commands not available from context menu #5946

lmcbout opened this issue Aug 14, 2019 · 29 comments
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help navigator issues related to the navigator/explorer

Comments

@lmcbout
Copy link
Contributor

lmcbout commented Aug 14, 2019

Description

Between Theia version 0.8.0 and 0.9.0, we lost some functionalities

Version 0.8.0

Explorer view and project are on two lines

  • Able to see the path of the project in workspace (When hovering)
  • Able to call the command "Compare with" from the context menu of the explorer view
  • Able to call the command "Add Folder to workspace" from the context menu

Version 0.9.0

Explorer view and project are on same line

  • No tool-tip for the workspace project path
  • Context menu in the explorer view not showing command options

In both versions, we can call the commands: "Add Folder to Workspace" and "Git:diff" from the quick open menu, but not from the context menu with version 0.9.0

Note: If you add a new root folder, then the menu becomes accessible from each root folder because the view is modified. Explorer view and project are on separate line.

Reproduction Steps

Version 0.8.0
ContextmenuV080

Version 0.9.0
ContextmenuV090

OS and Theia version:
Theia version 0.8.0 and version 0.9.0
OS: Ubuntu 16.04

Diagnostics:

@akosyakov
Copy link
Member

@lmcbout What about master state? Do you want to have 0.9.1 or just 0.10.0?

@akosyakov akosyakov added the bug bugs found in the application label Aug 14, 2019
@vince-fugnitto
Copy link
Member

@lmcbout we have aligned our behavior with VSCode and now support more complex views for the explorer (ability to add sub-views such as npm scripts). VSCode also does not show the project path when hovering over the title. The command Add Folder to Workspace is also present in the explorer, just not from the root node (empty area or quick-open command menu).

What do you think should be done?

@akosyakov
Copy link
Member

@vince-fugnitto view containers are not part of 0.9.0, they will be available only in 0.10.0

@lmcbout
Copy link
Contributor Author

lmcbout commented Aug 14, 2019

@akosyakov @vince-fugnitto No need to create a 0.9.1,version 0.10.0 is fine
Where do we see the project path! the only place to see it was when hovering over the workspace, not the view. Also, when we add a root workspace, then the menu becomes available as before. The way to see the new view is on the context menu of the view, not the workspace bar . Since the two lines (Workspace + view) are grouped together initially until we add a new root, the menu is not available.
I am preparing also a new issue about "Drag & drop | copy" a file to the root folder is not possible anymore in version 0.9.0

@vince-fugnitto
Copy link
Member

@vince-fugnitto view containers are not part of 0.9.0, they will be available only in 0.10.0

When running master the about dialog displays 0.9.0.
I believe @lmcbout tested the latest master.

@vince-fugnitto
Copy link
Member

Where do we see the project path?

Where do we see the workspace path in VSCode?

@lmcbout
Copy link
Contributor Author

lmcbout commented Aug 14, 2019

If VSCode does not show the workspace path, then Theia should not show it even if it was showing before !
You mean that Theia should always be less than VSCode !

@lmcbout
Copy link
Contributor Author

lmcbout commented Aug 14, 2019

Yes, version 0.9.0 I am using is based on this morning commit

@vince-fugnitto
Copy link
Member

If VSCode does not show the workspace path, then Theia should not show it even if it was showing before !
You mean that Theia should always be less than VSCode !

I don't quite understand what you mean by we should be less than VSCode.
I'm just stating that we had recent developments to align our views #5665 with that of VSCode and support plugins. This means that we are closer to VSCode, and of course things will change (and more is supported). If VSCode does not display the workspace path in a single-root workspace, then I'd expect that after aligning we don't either.

@vince-fugnitto
Copy link
Member

vince-fugnitto commented Aug 14, 2019

Yes, version 0.9.0 I am using is based on this morning commit

This morning's commit is 0.10.0 not 0.9.0.
0.9.0 was released on 5c29802

@lmcbout
Copy link
Contributor Author

lmcbout commented Aug 14, 2019

I don't quite understand what you mean by we should be less than VSCode.

Whether we are in a single root or multi-root, Theia should show the workspace path. If VSCode is not showing it in a single root, it is mistake.

@akosyakov akosyakov changed the title Useful commands not available from context menu on Theia version 0.9.0 Useful commands not available from context menu Aug 14, 2019
@akosyakov akosyakov added the navigator issues related to the navigator/explorer label Aug 14, 2019
@akosyakov
Copy link
Member

akosyakov commented Aug 14, 2019

@vince-fugnitto Cannot really grasp are here issues apart from with the title?

@vince-fugnitto
Copy link
Member

vince-fugnitto commented Aug 14, 2019

@akosyakov from what I gather, @lmcbout would like to include the workspace path when hovering over the widget title (in the case of a single-root workspace). It'd be a lot easier to track the issues separately I think.

@lmcbout
Copy link
Contributor Author

lmcbout commented Aug 14, 2019

I think this issue could be resolved if we continue to use two separated lines , one for the view with it own context menu and one for the workspace with its own context menu. Then whether we use a single or multi-root workspace, we always get the appropriate functionality

@vince-fugnitto
Copy link
Member

I think this issue could be resolved if we continue to use two separated lines , one for the view with it own context menu and one for the workspace with its own context menu. Then whether we use a single or multi-root workspace, we always get the appropriate functionality

Can you clarify what you mean by view an workspace lines?
Do you mean have the Explorer title, and then lower keep the workspace root node in the tree?
If so, it defeats the purpose of the recent changes and alignment effort.

@vince-fugnitto
Copy link
Member

@akosyakov I have a working poc which adds titles for sidebar panels, and in the case of the explorer I display the path. Is it acceptable?

Aug-14-2019 12-06-13

@lmcbout
Copy link
Contributor Author

lmcbout commented Aug 14, 2019

@vince-fugnitto the POC just above seems to fix a portion of the issue, what about the commands in the context menu? Also, do you have a DROP zone to drop files at the root level ( issue #5947 ) when you only have a single root !

@vince-fugnitto
Copy link
Member

@vince-fugnitto the POC just above seems to fix a portion of the issue, what about the commands in the context menu? Also, do you have a DROP zone to drop files at the root level ( issue #5947 ) when you only have a single root !

I never mentioned the POC fixing all issues, the POC only addresses the 'title'.
For the context menu, what do you believe should be included that cannot be performed by other means?

@vince-fugnitto
Copy link
Member

Also, do you have a DROP zone to drop files at the root level ( issue #5947 ) when you only have a single root !

I asked in #5947 if you'd like to handle the dnd.

@lmcbout
Copy link
Contributor Author

lmcbout commented Aug 14, 2019

The POC addresses the "title", I think we need to look for a global solution which will include the "title", the context menu" and the issue #5947
The context menu for the "Explorer " view will be useful, but I don't think it should include the context menu for the workspace under the same menu. (which is missing now)

it defeats the purpose of the recent changes and alignment effort.

You asked If I wanted to handle issue #5947 I think whoever will handle the issue will need to use the tree to handle it, so it might means to revert portion or all the related issue you talked about .
Also, it will probably collide with this current issue.

@vince-fugnitto
Copy link
Member

The POC addresses the "title", I think we need to look for a global solution which will include the "title", the context menu" and the issue #5947

I updated the 'title' because it is present in VSCode so we can now support it.
All widgets present in the sidebar that display a 'header' will now have a title attribute.

The context menu for the "Explorer " view will be useful, but I don't think it should include the context menu for the workspace under the same menu. (which is missing now)

I'm not sure where this context menu should be? I also don't know what items to include in it.
The view integration provides a context menu to show/hide integrations to the view.

You asked If I wanted to handle issue #5947 I think whoever will handle the issue will need to use the tree to handle it, so it might means to revert portion or all the related issue you talked about .
Also, it will probably collide with this current issue.

I don't think there is a collision at all. Enabling DnD for the root will not interfere with pre-existing issues. What needs to be reverted?

@akosyakov
Copy link
Member

I'm not sure where this context menu should be? I also don't know what items to include in it.
The view integration provides a context menu to show/hide integrations to the view.

Could we add actions to more context menu of the title toolbar?

@akosyakov
Copy link
Member

@vince-fugnitto Where can I see source code of a POC? Does it rely on caption of a part widget similarly to a title? If so we can do it.

@akosyakov akosyakov added the help wanted issues meant to be picked up, require help label Aug 15, 2019
@vince-fugnitto
Copy link
Member

@vince-fugnitto Where can I see source code of a POC? Does it rely on caption of a part widget similarly to a title? If so we can do it.

I added the PR here #5948

@akosyakov
Copy link
Member

@vince-fugnitto Is it clear what I mean under: #5946 (comment)

So like in SCM:
Screen Shot 2019-08-15 at 14 53 44

@vince-fugnitto
Copy link
Member

@vince-fugnitto Is it clear what I mean under: #5946 (comment)

So like in SCM:
Screen Shot 2019-08-15 at 14 53 44

Yes, I understood the ... toolbar item displaying the More context-menu :)

@vince-fugnitto
Copy link
Member

@akosyakov I'll extract the feature into it's own issue so we can track who's working on it and what items should be displayed in the menu.

@vince-fugnitto
Copy link
Member

Opened the issue #5951 to track it.

@vince-fugnitto
Copy link
Member

Closing the issue as:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help navigator issues related to the navigator/explorer
Projects
None yet
Development

No branches or pull requests

3 participants