Skip to content

feat: add reset the default code of LeetCode #834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: udpate translation
  • Loading branch information
luxuemin committed Aug 31, 2022
commit b74084c96e77e3adc9b8593044ee0e4b43b1bc8a
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -116,7 +116,7 @@
},
{
"command": "leetcode.resetSolution",
"title": "Reset the default code of LeetCode",
"title": "Reset to default code definition",
"category": "LeetCode"
},
{
@@ -682,7 +682,7 @@
"enumDescriptions": [
"Submit your answer to LeetCode.",
"Test your answer with customized test cases.",
"Reset the default code of template.",
"Reset to default code definition.",
"Star or unstar the current problem.",
"Show the top voted solution for the current problem.",
"Show the problem description page."
2 changes: 1 addition & 1 deletion src/commands/reset.ts
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ const resetBtn = 'Reset';

export async function resetSolution(uri?: vscode.Uri): Promise<void> {
try {
const selection = await vscode.window.showInformationMessage("Are you sure to reset the default code", {
const selection = await vscode.window.showInformationMessage("Are you sure to reset to default code definition", {
'detail': 'If reset, your current code will be lost',
modal: true
} as vscode.MessageOptions, resetBtn)