MCPcopy Index your code
hub / github.com/LeetCode-OpenSource/vscode-leetcode / genFileName

Function genFileName

src/utils/problemUtils.ts:17–21  ·  view source on GitHub ↗
(node: IProblem, language: string)

Source from the content-addressed store, hash-verified

15}
16
17export function genFileName(node: IProblem, language: string): string {
18 const slug: string = _.kebabCase(node.name);
19 const ext: string = genFileExt(language);
20 return `${node.id}.${slug}.${ext}`;
21}
22
23export async function getNodeIdFromFile(fsPath: string): Promise<string> {
24 const fileContent: string = await fse.readFile(fsPath, "utf8");

Callers 1

showProblemInternalFunction · 0.90

Calls 1

genFileExtFunction · 0.85

Tested by

no test coverage detected