@@ -43,38 +43,38 @@ export default class CommandHandler implements vscode.Disposable {
4343 ) ;
4444 }
4545
46- private registerTextEditorCommand ( command : string , cb : ( editor : vscode . TextEditor , ...args ) => Promise < void > ) {
46+ private registerTextEditorCommand ( command : string , cb : ( editor : vscode . TextEditor , ...args : any [ ] ) => Promise < void > ) {
4747 return vscode . commands . registerCommand ( command , ( ...args ) => {
4848 const editor = vscode . window . activeTextEditor ;
4949 return editor && cb . call ( this , editor , ...args ) ;
5050 } ) ;
5151 }
5252
53- acceptCurrent ( editor : vscode . TextEditor , ...args ) : Promise < void > {
53+ acceptCurrent ( editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
5454 return this . accept ( interfaces . CommitType . Current , editor , ...args ) ;
5555 }
5656
57- acceptIncoming ( editor : vscode . TextEditor , ...args ) : Promise < void > {
57+ acceptIncoming ( editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
5858 return this . accept ( interfaces . CommitType . Incoming , editor , ...args ) ;
5959 }
6060
61- acceptBoth ( editor : vscode . TextEditor , ...args ) : Promise < void > {
61+ acceptBoth ( editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
6262 return this . accept ( interfaces . CommitType . Both , editor , ...args ) ;
6363 }
6464
65- acceptAllCurrent ( editor : vscode . TextEditor , ...args ) : Promise < void > {
65+ acceptAllCurrent ( editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
6666 return this . acceptAll ( interfaces . CommitType . Current , editor ) ;
6767 }
6868
69- acceptAllIncoming ( editor : vscode . TextEditor , ...args ) : Promise < void > {
69+ acceptAllIncoming ( editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
7070 return this . acceptAll ( interfaces . CommitType . Incoming , editor ) ;
7171 }
7272
73- acceptAllBoth ( editor : vscode . TextEditor , ...args ) : Promise < void > {
73+ acceptAllBoth ( editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
7474 return this . acceptAll ( interfaces . CommitType . Both , editor ) ;
7575 }
7676
77- async compare ( editor : vscode . TextEditor , conflict : interfaces . IDocumentMergeConflict | null , ...args ) {
77+ async compare ( editor : vscode . TextEditor , conflict : interfaces . IDocumentMergeConflict | null , ...args : any [ ] ) {
7878 const fileName = path . basename ( editor . document . uri . fsPath ) ;
7979
8080 // No conflict, command executed from command palette
@@ -102,15 +102,15 @@ export default class CommandHandler implements vscode.Disposable {
102102 vscode . commands . executeCommand ( 'vscode.diff' , leftUri , rightUri , title ) ;
103103 }
104104
105- navigateNext ( editor : vscode . TextEditor , ...args ) : Promise < void > {
105+ navigateNext ( editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
106106 return this . navigate ( editor , NavigationDirection . Forwards ) ;
107107 }
108108
109- navigatePrevious ( editor : vscode . TextEditor , ...args ) : Promise < void > {
109+ navigatePrevious ( editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
110110 return this . navigate ( editor , NavigationDirection . Backwards ) ;
111111 }
112112
113- async acceptSelection ( editor : vscode . TextEditor , ...args ) : Promise < void > {
113+ async acceptSelection ( editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
114114 let conflict = await this . findConflictContainingSelection ( editor ) ;
115115
116116 if ( ! conflict ) {
@@ -175,7 +175,7 @@ export default class CommandHandler implements vscode.Disposable {
175175 editor . revealRange ( navigationResult . conflict . range , vscode . TextEditorRevealType . Default ) ;
176176 }
177177
178- private async accept ( type : interfaces . CommitType , editor : vscode . TextEditor , ...args ) : Promise < void > {
178+ private async accept ( type : interfaces . CommitType , editor : vscode . TextEditor , ...args : any [ ] ) : Promise < void > {
179179
180180 let conflict : interfaces . IDocumentMergeConflict | null ;
181181
@@ -257,7 +257,7 @@ export default class CommandHandler implements vscode.Disposable {
257257 } ;
258258 }
259259
260- let predicate : ( conflict ) => boolean ;
260+ let predicate : ( _conflict : any ) => boolean ;
261261 let fallback : ( ) => interfaces . IDocumentMergeConflict ;
262262
263263 if ( direction === NavigationDirection . Forwards ) {
0 commit comments