MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / logInvalidThemeOnce

Function logInvalidThemeOnce

src/cm/themes/index.js:69–76  ·  view source on GitHub ↗
(themeId, error, reason = "")

Source from the content-addressed store, hash-verified

67}
68
69function 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
78function validateThemeExtensions(themeId, extensions) {
79 if (!extensions.length) {

Callers 2

validateThemeExtensionsFunction · 0.85

Calls 2

addMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected