@@ -85,53 +85,40 @@ export class RepoLogProvider
8585 constructor ( private sourceControlManager : SourceControlManager ) {
8686 this . refresh ( ) ;
8787 this . _dispose . push (
88+ window . registerTreeDataProvider ( "repolog" , this ) ,
8889 commands . registerCommand (
8990 "svn.repolog.copymsg" ,
9091 async ( item : ILogTreeItem ) => copyCommitToClipboard ( "msg" , item )
91- )
92- ) ;
93- this . _dispose . push (
92+ ) ,
9493 commands . registerCommand (
9594 "svn.repolog.copyrevision" ,
9695 async ( item : ILogTreeItem ) => copyCommitToClipboard ( "revision" , item )
97- )
98- ) ;
99- this . _dispose . push (
96+ ) ,
10097 commands . registerCommand (
10198 "svn.repolog.addrepolike" ,
10299 this . addRepolikeGui ,
103100 this
104- )
105- ) ;
106- this . _dispose . push (
107- commands . registerCommand ( "svn.repolog.remove" , this . removeRepo , this )
108- ) ;
109- this . _dispose . push (
101+ ) ,
102+ commands . registerCommand ( "svn.repolog.remove" , this . removeRepo , this ) ,
110103 commands . registerCommand (
111104 "svn.repolog.openFileRemote" ,
112105 this . openFileRemoteCmd ,
113106 this
114- )
115- ) ;
116- this . _dispose . push (
117- commands . registerCommand ( "svn.repolog.openDiff" , this . openDiffCmd , this )
118- ) ;
119- this . _dispose . push (
107+ ) ,
108+ commands . registerCommand ( "svn.repolog.openDiff" , this . openDiffCmd , this ) ,
120109 commands . registerCommand (
121110 "svn.repolog.openFileLocal" ,
122111 this . openFileLocal ,
123112 this
113+ ) ,
114+ commands . registerCommand ( "svn.repolog.refresh" , this . refresh , this ) ,
115+ this . sourceControlManager . onDidChangeRepository (
116+ async ( _e : RepositoryChangeEvent ) => {
117+ return this . refresh ( ) ;
118+ // TODO refresh only required repo, need to pass element === getChildren()
119+ }
124120 )
125121 ) ;
126- this . _dispose . push (
127- commands . registerCommand ( "svn.repolog.refresh" , this . refresh , this )
128- ) ;
129- this . sourceControlManager . onDidChangeRepository (
130- async ( _e : RepositoryChangeEvent ) => {
131- return this . refresh ( ) ;
132- // TODO refresh only required repo, need to pass element === getChildren()
133- }
134- ) ;
135122 }
136123
137124 public dispose ( ) {
0 commit comments