Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sheng Chen <[email protected]>
  • Loading branch information
jdneo committed Mar 28, 2024
1 parent d3d03c5 commit d064228
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ export function getShortcuts(): Array<IJavaShortcut> {
if (extension.id === EXTENSION_ID) {
continue;
}
const contributesSection = extension.packageJSON['contributes'];
if (contributesSection) {
const shortcuts = contributesSection['javaShortcuts'];
if (shortcuts && Array.isArray(shortcuts) && shortcuts.length) {
javaShortcuts.push(...shortcuts);
}
const shortcuts = getShortcutsRegistration(extension);
if (shortcuts) {
javaShortcuts.push(...shortcuts);
}
}
}
Expand Down

0 comments on commit d064228

Please sign in to comment.