(themeId, error, reason = "")
| 67 | } |
| 68 | |
| 69 | function logInvalidThemeOnce(themeId, error, reason = "") { |
| 70 | if (warnedInvalidThemes.has(themeId)) return; |
| 71 | warnedInvalidThemes.add(themeId); |
| 72 | const message = reason |
| 73 | ? `[editorThemes] Theme '${themeId}' is invalid: ${reason}` |
| 74 | : `[editorThemes] Theme '${themeId}' is invalid.`; |
| 75 | console.error(message, error); |
| 76 | } |
| 77 | |
| 78 | function validateThemeExtensions(themeId, extensions) { |
| 79 | if (!extensions.length) { |
no test coverage detected