2025-03-04 12:53:19 +00:00
|
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
import { clsx, type ClassValue } from "clsx";
|
|
|
|
import { EditorLanguage } from "@/types/editor-language";
|
2025-03-04 13:28:47 +00:00
|
|
|
import LanguageServerConfig from "@/config/language-server";
|
2025-02-19 01:05:45 +00:00
|
|
|
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
|
|
return twMerge(clsx(inputs))
|
|
|
|
}
|
2025-03-04 12:53:19 +00:00
|
|
|
|
|
|
|
export function getPath(lang: EditorLanguage): string {
|
2025-03-04 13:28:47 +00:00
|
|
|
const config = LanguageServerConfig[lang];
|
2025-03-04 12:53:19 +00:00
|
|
|
return `file:///${config.lang.fileName}${config.lang.fileExtension}`;
|
|
|
|
}
|