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

Function searchProblem

src/commands/show.ts:62–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62export async function searchProblem(): Promise<void> {
63 if (!leetCodeManager.getUser()) {
64 promptForSignIn();
65 return;
66 }
67 const choice: IQuickItemEx<IProblem> | undefined = await vscode.window.showQuickPick(
68 parseProblemsToPicks(list.listProblems()),
69 {
70 matchOnDetail: true,
71 placeHolder: "Select one problem",
72 },
73 );
74 if (!choice) {
75 return;
76 }
77 await showProblemInternal(choice.value);
78}
79
80export async function showSolution(input: LeetCodeNode | vscode.Uri): Promise<void> {
81 let problemInput: string | undefined;

Callers

nothing calls this directly

Calls 5

promptForSignInFunction · 0.90
parseProblemsToPicksFunction · 0.85
showProblemInternalFunction · 0.85
getUserMethod · 0.80
listProblemsMethod · 0.80

Tested by

no test coverage detected