ThemeColor string literals like "problemsWarningIcon.foreground" and "notificationsErrorIcon.foreground" are scattered across multiple files. We chould extract these into a shared enum in src/icons.ts alongside IconNames, or split this into a more explicit src/themeIcons.ts and src/themeColors.ts since some colors may be used outside of the icon context.
"problemsErrorIcon.foreground"
|
export const ERROR_ICON = new ThemeIcon("warning", new ThemeColor("problemsErrorIcon.foreground")); |
|
this.iconPath = new ThemeIcon("warning", new ThemeColor("problemsErrorIcon.foreground")); |
|
return new ThemeIcon("warning", new ThemeColor("problemsErrorIcon.foreground")); |
"problemsWarningIcon.foreground"
"notificationsErrorIcon.foreground"
|
export const STATUS_RED = new ThemeColor("notificationsErrorIcon.foreground"); |
"notificationsWarningIcon.foreground"
|
export const STATUS_YELLOW = new ThemeColor("notificationsWarningIcon.foreground"); |
"notificationsInfoIcon.foreground"
|
export const STATUS_BLUE = new ThemeColor("notificationsInfoIcon.foreground"); |
"charts.green"
|
export const STATUS_GREEN = new ThemeColor("charts.green"); |
"charts.lines"
|
export const STATUS_GRAY = new ThemeColor("charts.lines"); |
ThemeColor string literals like
"problemsWarningIcon.foreground"and"notificationsErrorIcon.foreground"are scattered across multiple files. We chould extract these into a shared enum in src/icons.ts alongsideIconNames, or split this into a more explicitsrc/themeIcons.tsandsrc/themeColors.tssince some colors may be used outside of the icon context."problemsErrorIcon.foreground"vscode/src/icons.ts
Line 48 in 71b27b3
vscode/src/models/environment.ts
Line 404 in 71b27b3
vscode/src/viewProviders/resources.ts
Line 367 in 71b27b3
"problemsWarningIcon.foreground"vscode/src/models/consumerGroup.ts
Line 179 in 71b27b3
"notificationsErrorIcon.foreground"vscode/src/models/flinkStatement.ts
Line 341 in 71b27b3
"notificationsWarningIcon.foreground"vscode/src/models/flinkStatement.ts
Line 342 in 71b27b3
"notificationsInfoIcon.foreground"vscode/src/models/flinkStatement.ts
Line 343 in 71b27b3
"charts.green"vscode/src/models/flinkStatement.ts
Line 345 in 71b27b3
"charts.lines"vscode/src/models/flinkStatement.ts
Line 346 in 71b27b3