Skip to content

Commit 8036417

Browse files
natec425gregg-miskelly
authored andcommitted
Change build task description to use label (#1923)
* 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
1 parent 8b74553 commit 8036417

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/assets.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export class AssetGenerator {
204204
}
205205

206206
return {
207-
taskName: 'build',
207+
label: 'build',
208208
command: 'dotnet',
209209
type: 'process',
210210
args: ['build', util.convertNativePathToPosix(buildPath)],

typings/vscode-tasks.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ declare module "vscode-tasks" {
121121
/**
122122
* The task's name
123123
*/
124-
taskName: string;
124+
label: string;
125125

126126
/**
127127
* The type of a custom task. Tasks of type "shell" are executed
@@ -350,4 +350,4 @@ declare module "vscode-tasks" {
350350
*/
351351
loop?: boolean;
352352
}
353-
}
353+
}

0 commit comments

Comments
 (0)