refactor(studio-server): referenceSyntax is only read inside fileReferences now

This commit is contained in:
Miguel Angel Simon Sierra
2026-11-21 02:48:49 -05:00
parent a2f23ad333
commit 8660dacd9d
@@ -116,7 +116,7 @@ function spellLike(
return SPELLINGS[context.syntax](path, context);
}
export function referenceSyntax(file: string): ReferenceSyntax {
function referenceSyntax(file: string): ReferenceSyntax {
if (/\.html$/i.test(file)) return "html";
if (/\.css$/i.test(file)) return "css";
if (/\.(?:[cm]?js|jsx|tsx?|json)$/i.test(file)) return "script";