MCPcopy Create free account
hub / github.com/LeetCode-OpenSource/vscode-leetcode / parseProblemDecorator

Function parseProblemDecorator

src/commands/show.ts:208–217  ·  view source on GitHub ↗
(state: ProblemState, locked: boolean)

Source from the content-addressed store, hash-verified

206}
207
208function parseProblemDecorator(state: ProblemState, locked: boolean): string {
209 switch (state) {
210 case ProblemState.AC:
211 return "$(check) ";
212 case ProblemState.NotAC:
213 return "$(x) ";
214 default:
215 return locked ? "$(lock) " : "";
216 }
217}
218
219async function resolveRelativePath(relativePath: string, node: IProblem, selectedLanguage: string): Promise<string> {
220 let tag: string = "";

Callers 1

parseProblemsToPicksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected