Theia: 'Open Recent Workspace' menu item no longer displays

Created on 7 Nov 2018  路  8Comments  路  Source: eclipse-theia/theia

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

bug

All 8 comments

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

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

@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.

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

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.

@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

Is this related: https://github.com/theia-ide/theia/issues/3429?

It breaks electron.

Is this related: #3429?

It breaks electron.

yes #3427 should fix it :)

Was this page helpful?
0 / 5 - 0 ratings