File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ enum CodebucketCommands {
13
13
CopyPullRequest = 'atlascode.bb.copyPullRequest' ,
14
14
}
15
15
16
- export function activate ( context : ExtensionContext ) {
16
+ function registerCommands ( context : ExtensionContext ) {
17
17
const openInBitbucket = new OpenInBitbucketCommand ( ) ;
18
18
const openInBitbucketCmd = commands . registerCommand ( CodebucketCommands . OpenInBitbucket , ( ) =>
19
19
openInBitbucket . run ( ) ,
@@ -35,6 +35,14 @@ export function activate(context: ExtensionContext) {
35
35
copyPullRequest . run ( ) ,
36
36
) ;
37
37
context . subscriptions . push ( copyPullRequestCmd ) ;
38
+ }
39
+
40
+ function registerDecorationProviders ( context : ExtensionContext ) {
38
41
const decorationProvider = new FileDecorationProvider ( ) ;
39
42
context . subscriptions . push ( window . registerFileDecorationProvider ( decorationProvider ) ) ;
40
43
}
44
+
45
+ export function activate ( context : ExtensionContext ) {
46
+ registerCommands ( context ) ;
47
+ registerDecorationProviders ( context ) ;
48
+ }
You can’t perform that action at this time.
0 commit comments