Skip to content

Commit 5b92062

Browse files
committed
Refactored activation function
1 parent aeeddbe commit 5b92062

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/codebucket/command/registerCommands.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ enum CodebucketCommands {
1313
CopyPullRequest = 'atlascode.bb.copyPullRequest',
1414
}
1515

16-
export function activate(context: ExtensionContext) {
16+
function registerCommands(context: ExtensionContext) {
1717
const openInBitbucket = new OpenInBitbucketCommand();
1818
const openInBitbucketCmd = commands.registerCommand(CodebucketCommands.OpenInBitbucket, () =>
1919
openInBitbucket.run(),
@@ -35,6 +35,14 @@ export function activate(context: ExtensionContext) {
3535
copyPullRequest.run(),
3636
);
3737
context.subscriptions.push(copyPullRequestCmd);
38+
}
39+
40+
function registerDecorationProviders(context: ExtensionContext) {
3841
const decorationProvider = new FileDecorationProvider();
3942
context.subscriptions.push(window.registerFileDecorationProvider(decorationProvider));
4043
}
44+
45+
export function activate(context: ExtensionContext) {
46+
registerCommands(context);
47+
registerDecorationProviders(context);
48+
}

0 commit comments

Comments
 (0)