Skip to content

Commit

Permalink
Change build task description to use label (#1923)
Browse files Browse the repository at this point in the history
* Change build task description to use label

In vscode 1.18 `taskName` was deprecated in favor of `label`.
This updates the generated description to comply with that update.

https://code.visualstudio.com/updates/v1_18#_schema-improvements

* Change TaskDescription typing to use label
  • Loading branch information
natec425 authored and gregg-miskelly committed Dec 18, 2017
1 parent 8b74553 commit 8036417
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class AssetGenerator {
}

return {
taskName: 'build',
label: 'build',
command: 'dotnet',
type: 'process',
args: ['build', util.convertNativePathToPosix(buildPath)],
Expand Down
4 changes: 2 additions & 2 deletions typings/vscode-tasks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ declare module "vscode-tasks" {
/**
* The task's name
*/
taskName: string;
label: string;

/**
* The type of a custom task. Tasks of type "shell" are executed
Expand Down Expand Up @@ -350,4 +350,4 @@ declare module "vscode-tasks" {
*/
loop?: boolean;
}
}
}

0 comments on commit 8036417

Please sign in to comment.