Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 2x 2x 2x 2x 2x 2x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 2x 2x 2x 2x | const { createCoreCommandHandlers } = require("./coreCommandHandlers");
const { createReviewCommandHandlers } = require("./reviewCommandHandlers");
const {
createNavigationCommandHandlers,
} = require("./navigationCommandHandlers");
function createCommandHandlers({
vscodeApi,
logger,
sidebarProvider,
codeReviewPanel,
prReviewService,
factories = {},
}) {
const coreFactory = factories.core || createCoreCommandHandlers;
const reviewFactory = factories.review || createReviewCommandHandlers;
const navigationFactory =
factories.navigation || createNavigationCommandHandlers;
return {
...coreFactory({
vscodeApi,
logger,
sidebarProvider,
}),
...reviewFactory({
vscodeApi,
logger,
codeReviewPanel,
prReviewService,
}),
...navigationFactory({
codeReviewPanel,
}),
};
}
module.exports = {
createCommandHandlers,
};
|