Skip to content

Commit

Permalink
add task icon description (#153596)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored Jun 28, 2022
1 parent 46956d2 commit 2ade948
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vs/workbench/contrib/tasks/common/jsonSchema_v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,16 @@ const detail: IJSONSchema = {

const icon: IJSONSchema = {
type: 'object',
description: nls.localize('JsonSchema.tasks.icon', 'An optional icon for the task'),
properties: {
id: {
description: nls.localize('JsonSchema.tasks.icon.id', 'An optional icon for the task'),
type: 'string',
description: nls.localize('JsonSchema.tasks.icon.id', 'An optional codicon ID to use'),
type: ['string', 'null'],
enum: Array.from(Codicon.getAll(), icon => icon.id),
markdownEnumDescriptions: Array.from(Codicon.getAll(), icon => `$(${icon.id})`),
},
color: {
description: nls.localize('JsonSchema.tasks.icon.color', 'An optional color to use for the task icon'),
description: nls.localize('JsonSchema.tasks.icon.color', 'An optional color of the icon'),
type: ['string', 'null'],
enum: [
'terminal.ansiBlack',
Expand Down

0 comments on commit 2ade948

Please sign in to comment.