forked from eclipse-theia/theia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi-root workspace support, vsCode compatibility
The patch 80f402c added the support of having multiple roots in the same workspace. In that patch, workspace meta data is stored in the `.theia` folder of the first root, and brings up the following issues / difficulties: - using the same first root in more than one workspace becomes impossible. - no flexibility of naming the workspace or deciding where to store the workspace meta data. - theia opens the implicit workspace folder after all roots are removed from the workspace, causing confusion. - preferences of the workspace folder is used across the all roots in the same workspace. - workspace meta data is stored in more than one file, and the format is incompatible with most other (if not all) IDEs. This is the 2nd patch for eclipse-theia#1660. What is included in this PR: - workspace file becomes independent from the root folders. It is users' choice to decide where to store the information, and what to name the workspace. - theia prompts users to save the workspace data in a user-specified place, if the workspace does not have a user-specified place to store the meta data. - workspaces can be recreated from the workspace file - "Save workspace As..." is available for users to rename workspace or change location of the workspace file. - the format of theia workspace file is compatible with that of vsCode. Paths relative to the parent folder of the workspace file are used where applicable - a multi root workspace can be opened by theia by running `yarn start <path of the workpsace file>` What is not inlcuded in this PR: - the workspace preferences should be saved as part of the meta data file. - root display names are not customizable by adding the folders -> name property in the workspace file. Signed-off-by: elaihau <liang.huang@ericsson.com>
- Loading branch information
Showing
11 changed files
with
433 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.