-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension should be able to contribute a task template and a user can pick a template #966
Comments
It would be great if extensions could hook into this too to provide configurations and a custom tasks.json. The same goes with the launch.json too. |
// Note: Related #981 |
1 similar comment
// Note: Related #981 |
Extracted comment from #2263 Yes, please! With the PowerShell extension we want to provide a default task to run Pester tests. It would be great if an extension could provide the initial tasks.json file you get with {
"version": "0.1.0",
// Start PowerShell
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe",
// The command is a shell script
"isShellCommand": true,
// Show the output window always
"showOutput": "always",
// Allow Pester to invoke scripts and run Pester
"args": [
"-NoProfile",
"Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process;",
"Write-Host 'Invoking Pester...'; Invoke-Pester;",
"Invoke-Command { Write-Host \"Completed all tasks in task runner: $($args[0])\" } -args"
],
// Associate with test task runner
"tasks": [
{
"taskName": "Pester",
"isTestCommand": true,
"problemMatcher": "$pester"
}
}
} Seems like the |
See #3125 |
I like the direction but yeah, we need to be able to provide task snippets with our extension and have those show up when the user edits a tasks.json file. How would you handle duplicates? Say another extension created a BetterTypeScriptTasks.json that contained the snippet |
This feature would be interesting for the vscode-java extension, giving the ability to contribute gradle task templates, for instance. |
[Addressed in new terminal runner] In the terminal runner world extension can contribute tasks programmatically. So the Java extension can contribute a gradle task dynamically by checking if a gradle configuration is available without having the user to edit the tasks.json file. |
Closing. Got addressed in task 2.0.0 |
Currently the Configure Task Runner action generates a large task.json file with many different task configurations, that the user has to clean-up eventually, that is, delete the configs that do not apply.
Instead of generating one large file we should allow the user to select what kind of task that should be configured and then to only generate this one. This is similar to how we generate the launch configurations.
The text was updated successfully, but these errors were encountered: