mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
feat(utils): include problemId in getPath function
This commit is contained in:
parent
c5cf52168b
commit
b339e407cf
@ -3,9 +3,12 @@ import { clsx, type ClassValue } from "clsx";
|
||||
import { EditorLanguageConfig } from "@prisma/client";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
|
||||
export function getPath(editorLanguageConfig: EditorLanguageConfig) {
|
||||
return `file:///${editorLanguageConfig.fileName}${editorLanguageConfig.fileExtension}`;
|
||||
export function getPath(
|
||||
problemId: string,
|
||||
editorLanguageConfig: EditorLanguageConfig
|
||||
) {
|
||||
return `file:///${problemId}/${editorLanguageConfig.fileName}${editorLanguageConfig.fileExtension}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user