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

'Open Recent Workspace' menu item no longer displays #3421

Closed
vince-fugnitto opened this issue Nov 7, 2018 · 8 comments
Closed

'Open Recent Workspace' menu item no longer displays #3421

vince-fugnitto opened this issue Nov 7, 2018 · 8 comments
Assignees
Labels
bug bugs found in the application

Comments

@vince-fugnitto
Copy link
Member

As of 9b08af1, the menu item for Open Recent Workspace no longer displays.

@vince-fugnitto vince-fugnitto added the bug bugs found in the application label Nov 7, 2018
@akosyakov
Copy link
Member

@vince-fugnitto will you care about it? the check should be inverted

@vince-fugnitto
Copy link
Member Author

@akosyakov I can take care of it if you'd like :)

@vince-fugnitto vince-fugnitto self-assigned this Nov 7, 2018
@vince-fugnitto
Copy link
Member Author

vince-fugnitto commented Nov 7, 2018

@akosyakov
The problem that I notice is that we are waiting for the promise of this.workspaceService.rencentWorkspaces to resolve before the command can be registered.

This however is too late for the menu item as he will never get rendered if the command is not yet registered. This means that the Open Recent Workspace menu item will never be rendered. I have my doubts also on whether this would work on Electron as well.

@vince-fugnitto
Copy link
Member Author

just for my information, why did we need to perform the check before registering the command ?

@akosyakov
Copy link
Member

My initial motivation was to remove onStart callback, since it was fetching recent workspaces from the backend and delaying showing the shell to a user. I'm fine with any fix if it does not reintroduce onStart with remote calls.

@vince-fugnitto
Copy link
Member Author

@elaihau what I'll do is remove the async calls, and not rely on hasHistory as before and instead display No Recent Workspaces if a user attempts to use the command without any recents. This will fix the menu issue, as well as your onStart problem

vince-fugnitto added a commit that referenced this issue Nov 7, 2018
Fixes #3421

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
vince-fugnitto added a commit that referenced this issue Nov 7, 2018
Fixes #3421

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
vince-fugnitto added a commit that referenced this issue Nov 7, 2018
Fixes #3421

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
@kittaakos
Copy link
Contributor

Is this related: #3429?

It breaks electron.

@vince-fugnitto
Copy link
Member Author

Is this related: #3429?

It breaks electron.

yes #3427 should fix it :)

vince-fugnitto added a commit that referenced this issue Nov 7, 2018
Fixes #3421

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
kittaakos pushed a commit that referenced this issue Nov 8, 2018
Fixes #3421

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
bogthe pushed a commit to ARMmbed/theia that referenced this issue Jan 21, 2019
Fixes eclipse-theia#3421

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Signed-off-by: Bogdan Stolojan <petre.stolojan@arm.com>
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
Projects
None yet
Development

No branches or pull requests

3 participants