Open lmcbout opened 6 years ago
Perhaps the correct implementation would be to set the current
workspace whenever a new workspace is opened, and not when it is closed?
Imagine the following scenario:
a
is opened, it is therefore set as the current
workspace in recentworkspace.json
.b
, it is set as the current
workspace.a
is closed, recentworkspace.json
is not updated, keeping b
as the recent.
When I open a second workspace, the "current" workspace is the last one openned. If I select the top corner "X" of the previous workspace to close it since I don't need it anymore, it refreshes the file "/.theia/recentworkspace.json", so making the current workspace the wrong one. Closing a workspace should not refresh the file "recentWorkspace.json". Depending the order the workspaces are closed would make on the next restart of the server the last closed workspace as the current one.
The last edited workspace should be the current one, not the last one closed.