Skip to content

feat: Add support for customized shortcut order #816

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 9 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
Next Next commit
feat: Add support for customized shortcut order
delete annotated code
  • Loading branch information
hummingg authored Jun 30, 2022
commit 750325b41b668c06844327632fe87bdd47d7dfad
42 changes: 0 additions & 42 deletions src/codelens/CustomCodeLensProvider.ts
Original file line number Diff line number Diff line change
@@ -94,48 +94,6 @@ export class CustomCodeLensProvider implements vscode.CodeLensProvider {
}));
}

/*
if (shortcuts.indexOf("submit") >= 0) {
codeLens.push(new vscode.CodeLens(range, {
title: "Submit",
command: "leetcode.submitSolution",
arguments: [document.uri],
}));
}

if (shortcuts.indexOf("test") >= 0) {
codeLens.push(new vscode.CodeLens(range, {
title: "Test",
command: "leetcode.testSolution",
arguments: [document.uri],
}));
}

if (shortcuts.indexOf("star") >= 0 && node) {
codeLens.push(new vscode.CodeLens(range, {
title: node.isFavorite ? "Unstar" : "Star",
command: node.isFavorite ? "leetcode.removeFavorite" : "leetcode.addFavorite",
arguments: [node],
}));
}

if (shortcuts.indexOf("solution") >= 0) {
codeLens.push(new vscode.CodeLens(range, {
title: "Solution",
command: "leetcode.showSolution",
arguments: [document.uri],
}));
}

if (shortcuts.indexOf("description") >= 0) {
codeLens.push(new vscode.CodeLens(range, {
title: "Description",
command: "leetcode.previewProblem",
arguments: [document.uri],
}));
}
*/

return codeLens;
}
}