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

Method listProblems

src/leetCodeExecutor.ts:91–101  ·  view source on GitHub ↗
(showLocked: boolean, needTranslation: boolean)

Source from the content-addressed store, hash-verified

89 }
90
91 public async listProblems(showLocked: boolean, needTranslation: boolean): Promise<string> {
92 const cmd: string[] = [await this.getLeetCodeBinaryPath(), "list"];
93 if (!needTranslation) {
94 cmd.push("-T"); // use -T to prevent translation
95 }
96 if (!showLocked) {
97 cmd.push("-q");
98 cmd.push("L");
99 }
100 return await this.executeCommandEx(this.nodeExecutable, cmd);
101 }
102
103 public async showProblem(problemNode: IProblem, language: string, filePath: string, showDescriptionInComment: boolean = false, needTranslation: boolean): Promise<void> {
104 const templateType: string = showDescriptionInComment ? "-cx" : "-c";

Callers 4

listProblemsFunction · 0.80
pickOneFunction · 0.80
searchProblemFunction · 0.80
refreshCacheMethod · 0.80

Calls 2

getLeetCodeBinaryPathMethod · 0.95
executeCommandExMethod · 0.95

Tested by

no test coverage detected