-
Notifications
You must be signed in to change notification settings - Fork 692
Feature Request #1017
Description
🚀 Feature Proposal
Currently, when submitting multiple times for the same problem in the same language through the VS Code LeetCode plugin, the file problems/<slug>/solution.<ext> is overwritten. Only the latest submission is kept locally. The proposal is to preserve all submissions locally, ideally with a timestamp or version suffix (e.g., solution_2026-04-01-22-08.cpp, solution_2026-04-01-22-16.cpp), so that users can maintain a full submission history similar to what is shown on the LeetCode website.
Motivation
On the LeetCode website, each submission is logged with its own timestamp under the same problem, allowing users to track progress, compare iterations, and revisit optimizations. Locally, however, overwriting loses this history and fragments workflows. Developers often iterate on solutions (optimizations, refactors), and preserving submissions would align local behavior with the website, improving usability and consistency.
Contribution
A possible solution is to add a configuration option in plugin settings:
overwrite = true(default, current behavior)preserve = true(new behavior, append timestamp/version to filename)
This way, users who prefer overwrite simplicity can keep it, while those who want full history can enable preservation. I am happy to contribute by drafting the logic for filename handling and testing the feature if the maintainers agree this enhancement is valuable.