I want to create a custom VS Code task with my own schema
docs
vscode task
e.g. A new tree view which is empty and when user click on +
button (a new tree view with button which is similar source code tree like, add file, add folder, etc but just with +
button which create a new tasks from two options) he got list of tasks when he click on specific task it
create a tasks.json
(if it doesn't exist) file with schema which is related to the task he choose from the list like tasks1 and if he choose task2
he get different entry in the tasks.json
that he need to edit.
The trick here, that each task should add different entry in the tasks.json
file which is generated to the user
e.g.
if user choose task1 he need to fill (a new entry in the task.json
)
username
password
And if he choose task2
system
endpoint
Is it possible to do it in VS Code? Any example with for this can will be helpful.
I've tried the following even it doesn't fit the same scenario I need exactly (different tasks entry in the tasks.json
file) however it doesn't add any task on the task.json
. More here: https://github.com/microsoft/vscode-extension-samples/tree/master/task-provider-sample
tasks.json
file, I didnt manage to do it with thetaskprovider
API but as I need to vscode extension maybe I miss something – Kermes