The extension allows to work with the Che Commands through the Theia Tasks concept.
Contributes:
- Che task runner that runs the Che commands as the Theia tasks;
- Che task resolver that fills the missed mandatory parameters in a task;
- Che task provider that provides the Che workspace's commands as provided Theia tasks;
Preview URLsview;che.task.preview.notificationspreference to set the preferred way of previewing a service URL:onvalue enables a notification to ask a user how a URL should be openedalwaysPreviewvalue tells Theia to open a preview URL automatically inside Theia as soon as a task is runningalwaysGoTovalue tells Theia to open a preview URL automatically in a separate browser's tab as soon as a task is runningoffvalue disables opening a preview URL (automatically and with a notification)
The extension provides the CheTaskService allows to run a Che task by it's name.
The format of a Che task is the following:
{
"type": "che",
"label": "",
"command": "",
"target": {
"workspaceId": "",
"machineName": ""
},
"previewUrl": ""
}The target and previewUrl fields are optional.
The variables substitution is supported for the command and previewUrl fields.
Run a Che7 workspace with the che-machine-exec-plugin included, e.g. use Che7 stack.
Set the environment variables point to your workspace:
CHE_API_EXTERNALCHE_API_INTERNALCHE_WORKSPACE_ID
yarn
cd browser-app
yarn start
Open http://localhost:3000 in the browser
cd che-theia-task-extension
yarn watch
cd browser-app
yarn watch