(node: LeetCodeNode)
| 22 | } |
| 23 | |
| 24 | export 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 | } |
nothing calls this directly
no test coverage detected