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

Function removeFavorite

src/commands/star.ts:24–34  ·  view source on GitHub ↗
(node: LeetCodeNode)

Source from the content-addressed store, hash-verified

22}
23
24export async function removeFavorite(node: LeetCodeNode): Promise<void> {
25 try {
26 await leetCodeExecutor.toggleFavorite(node, false);
27 await leetCodeTreeDataProvider.refresh();
28 if (hasStarShortcut()) {
29 customCodeLensProvider.refresh();
30 }
31 } catch (error) {
32 await promptForOpenOutputChannel("Failed to remove the problem from favorite. Please open the output channel for details.", DialogType.error);
33 }
34}

Callers

nothing calls this directly

Calls 4

hasStarShortcutFunction · 0.90
toggleFavoriteMethod · 0.80
refreshMethod · 0.45

Tested by

no test coverage detected