MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / isLanguageLoaded

Function isLanguageLoaded

webview-ui/src/utils/highlighter.ts:120–122  ·  view source on GitHub ↗
(language: string)

Source from the content-addressed store, hash-verified

118
119// Export function to check if a language is loaded
120export const isLanguageLoaded = (language: string): boolean => {
121 return state.loadedLanguages.has(normalizeLanguage(language))
122}
123
124// Artificial delay for testing language loading (ms) - for testing
125const LANGUAGE_LOAD_DELAY = 0

Callers 1

highlightFunction · 0.90

Calls 2

normalizeLanguageFunction · 0.85
hasMethod · 0.65

Tested by

no test coverage detected