diff --git a/src/sql/platform/tasks/browser/tasksRegistry.ts b/src/sql/platform/tasks/browser/tasksRegistry.ts index 769659422e..72a66dbbf1 100644 --- a/src/sql/platform/tasks/browser/tasksRegistry.ts +++ b/src/sql/platform/tasks/browser/tasksRegistry.ts @@ -81,7 +81,7 @@ export abstract class Task { constructor(private opts: ITaskOptions) { this.id = opts.id; this.title = opts.title; - if (opts.iconPath.dark) { + if (opts.iconPath) { this.iconPath = { dark: URI.parse(opts.iconPath.dark), light: opts.iconPath.light ? URI.parse(opts.iconPath.light) : undefined,