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

Function matchingModeName

src/cm/lsp/tooltipExtensions.ts:64–73  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

62}
63
64function matchingModeName(a: string, b: string): boolean {
65 const normalizedA = normalizeLanguageName(a);
66 const normalizedB = normalizeLanguageName(b);
67 if (!normalizedA || !normalizedB) return false;
68 if (normalizedA === normalizedB) return true;
69
70 const languageA = findLanguageDescription(normalizedA);
71 const languageB = findLanguageDescription(normalizedB);
72 return !!languageA && languageA === languageB;
73}
74
75function getLanguageCandidates(language: string): string[] {
76 const normalized = normalizeLanguageName(language);

Callers 1

renderCodeFunction · 0.85

Calls 2

normalizeLanguageNameFunction · 0.85
findLanguageDescriptionFunction · 0.85

Tested by

no test coverage detected