This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
Export configurations from devfile in a launch.json and tasks.json files #218
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
It's expected that configurations are presented in the format.
The current implementation supports the merge existed configurations from config file and configs from devfile. Configurations from devfile have higher priority than existed configs in config file.
So, if you already have configs in launch.json file, for example, the configs with the same label will be replaced by configs from devfile.
About export tasks configurations in tasks.json file.
In the PR I rely that
referenceContent
forvscode-task
type action contains ready to use configurations(in vs code format) - we don’t convert them and we just copy content to tasks.json file (if tasks.json file is absent or doesn’t contain configs) or merge with existed configs.Another actions from commands section of devfile are che commands - we don’t copy them to tasks.json file, but convert them to theia tasks. They are available for running from UI as ‘detected’.
What issues does this PR fix or reference?
eclipse-che/che#12711
Related issue: eclipse-che/che#13057
Please see video: https://youtu.be/8H8dLju0Goc