Improve resolveTask documentation

This commit is contained in:
Alex Ross 2021-03-23 14:45:32 +01:00
parent ab12e39334
commit 684a452605
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840

4
src/vs/vscode.d.ts vendored
View file

@ -6674,6 +6674,10 @@ declare module 'vscode' {
* tasks are always fully resolved. A valid default implementation for the
* `resolveTask` method is to return `undefined`.
*
* Note that when filling in the properties of `task`, you _must_ be sure to
* use the exact same `TaskDefinition` and not create a new one. Other properties
* may be changed.
*
* @param task The task to resolve.
* @param token A cancellation token.
* @return The resolved task