Function vscode.tasks.fetchTasks
in Theia works different than in VSCode. Task provided by Task Provider are fetched correcly, but if this task saved in tasks configuration (tasks.json
) it's fetched in VSCode and not fetched in Theia.
- Clone this project.
- Open this project in VSCode (I used v1.46.1).
- Run
npm install
andnpm run compile
. - Run Extension from the Run View.
- In the
Extension Development Host
window open foldertestdata
of this project. - Open Output view
- From the command palette select command
fetch echo tasks
. - Select output channel named
echo-channel
. - Ensure that 3 tasks are provided:
Detected task 1 Detected task 2 Configured task 3
- This is expected behavior
- For further reprodicing in Theia package this project with command:
vsce package
. Fileechotaskprovider-0.0.1.vsix
will be created in the root of the project.
- Open https://gitpod.io/#https://github.com/eclipse-theia/theia to start development with the master branch.
- Gitpod will start a properly configured for Theia development workspace, clone and build the Theia repository.
- After the build is finished,, upload
echotaskprovider-0.0.1.vsix
extension into folderplugin
. - Run from the terminal in Gitpod:
cd examples/browser && yarn run start ../.. --hostname 0.0.0.0
. - Open
localhost:3000
. - In the
Extension Development Host
window open foldertestdata
of this project. - From the command palette select command
fetch echo tasks
. - Select output channel named
echo-channel
. 9 Ensure that only 2 tasks are provided:Detected task 1 Detected task 2
- Change the
Configured task 3
task intasks.json
file adding property "taskType": "". - Save the file.
- Run command
fetch echo tasks
. - All 3 tasks are fetched now.