feat: support custom local study plans via json#3
Conversation
634b599 to
95cc20c
Compare
|
Thanks for the submission. I tested it and the feature does work, but the source resolution is ambiguous in a few places, and I would like that fixed before accepting. 1. It is not clear whether a plan loads from LeetCode or from the local JSON Whether a plan is local depends only on the presence of
2. Please make the source explicit in the configuration UI Add a per-plan source selector in the 3. The JSON contract needs to be documented more clearly The README example is a good start, but please also spell out: the expected shape (category name mapped to an array of problem slugs), which workspace folder a relative Happy to accept once these are addressed. |
Description:
This PR introduces the ability to load highly structured, custom-categorized study plans without relying on LeetCode's backend API or hardcoding them into the extension's source code.
Key Changes:
studyPlansconfiguration array in.leetcodenow supports an optionalpathproperty.pathproperty, it bypasses the LeetCode API and instead reads the local JSON file.problemset-cache.json, instantly constructing the categorized UI tree in the sidebar exactly like an official LeetCode Study Plan.README.mdand.leetcodefile with examples of how to configure and structure the custom JSON payload.