@@ -87,34 +87,34 @@ function dispose() {
8787}
8888function registerCommands ( ) : vscode . Disposable [ ] {
8989 const disposables : Disposable [ ] = [ ] ;
90- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Discover , ( cmdSource : CommandSource = CommandSource . commandPalette , resource ?: Uri ) => {
90+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Discover , ( _ , cmdSource : CommandSource = CommandSource . commandPalette , resource ?: Uri ) => {
9191 // Ignore the exceptions returned.
9292 // This command will be invoked else where in the extension.
9393 // tslint:disable-next-line:no-empty
9494 discoverTests ( cmdSource , resource , true , true ) . catch ( ( ) => { } ) ;
9595 } ) ) ;
96- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Run_Failed , ( cmdSource : CommandSource = CommandSource . commandPalette , resource : Uri ) => runTestsImpl ( cmdSource , resource , undefined , true ) ) ) ;
96+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Run_Failed , ( _ , cmdSource : CommandSource = CommandSource . commandPalette , resource : Uri ) => runTestsImpl ( cmdSource , resource , undefined , true ) ) ) ;
9797 // tslint:disable-next-line:no-unnecessary-callback-wrapper
98- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Run , ( cmdSource : CommandSource = CommandSource . commandPalette , file : Uri , testToRun ?: TestsToRun ) => runTestsImpl ( cmdSource , file , testToRun ) ) ) ;
99- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Debug , ( cmdSource : CommandSource = CommandSource . commandPalette , file : Uri , testToRun : TestsToRun ) => runTestsImpl ( cmdSource , file , testToRun , false , true ) ) ) ;
98+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Run , ( _ , cmdSource : CommandSource = CommandSource . commandPalette , file : Uri , testToRun ?: TestsToRun ) => runTestsImpl ( cmdSource , file , testToRun ) ) ) ;
99+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Debug , ( _ , cmdSource : CommandSource = CommandSource . commandPalette , file : Uri , testToRun : TestsToRun ) => runTestsImpl ( cmdSource , file , testToRun , false , true ) ) ) ;
100100 // tslint:disable-next-line:no-unnecessary-callback-wrapper
101101 disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_View_UI , ( ) => displayUI ( CommandSource . commandPalette ) ) ) ;
102102 // tslint:disable-next-line:no-unnecessary-callback-wrapper
103- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Picker_UI , ( cmdSource : CommandSource = CommandSource . commandPalette , file : Uri , testFunctions : TestFunction [ ] ) => displayPickerUI ( cmdSource , file , testFunctions ) ) ) ;
104- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Picker_UI_Debug , ( cmdSource : CommandSource = CommandSource . commandPalette , file : Uri , testFunctions : TestFunction [ ] ) => displayPickerUI ( cmdSource , file , testFunctions , true ) ) ) ;
103+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Picker_UI , ( _ , cmdSource : CommandSource = CommandSource . commandPalette , file : Uri , testFunctions : TestFunction [ ] ) => displayPickerUI ( cmdSource , file , testFunctions ) ) ) ;
104+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Picker_UI_Debug , ( _ , cmdSource : CommandSource = CommandSource . commandPalette , file : Uri , testFunctions : TestFunction [ ] ) => displayPickerUI ( cmdSource , file , testFunctions , true ) ) ) ;
105105 // tslint:disable-next-line:no-unnecessary-callback-wrapper
106- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Stop , ( resource : Uri ) => stopTests ( resource ) ) ) ;
106+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Stop , ( _ , resource : Uri ) => stopTests ( resource ) ) ) ;
107107 // tslint:disable-next-line:no-unnecessary-callback-wrapper
108- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_ViewOutput , ( cmdSource : CommandSource = CommandSource . commandPalette ) => viewOutput ( cmdSource ) ) ) ;
108+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_ViewOutput , ( _ , cmdSource : CommandSource = CommandSource . commandPalette ) => viewOutput ( cmdSource ) ) ) ;
109109 disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Ask_To_Stop_Discovery , ( ) => displayStopUI ( 'Stop discovering tests' ) ) ) ;
110110 disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Ask_To_Stop_Test , ( ) => displayStopUI ( 'Stop running tests' ) ) ) ;
111111 // tslint:disable-next-line:no-unnecessary-callback-wrapper
112- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Select_And_Run_Method , ( cmdSource : CommandSource = CommandSource . commandPalette , resource : Uri ) => selectAndRunTestMethod ( cmdSource , resource ) ) ) ;
113- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Select_And_Debug_Method , ( cmdSource : CommandSource = CommandSource . commandPalette , resource : Uri ) => selectAndRunTestMethod ( cmdSource , resource , true ) ) ) ;
112+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Select_And_Run_Method , ( _ , cmdSource : CommandSource = CommandSource . commandPalette , resource : Uri ) => selectAndRunTestMethod ( cmdSource , resource ) ) ) ;
113+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Select_And_Debug_Method , ( _ , cmdSource : CommandSource = CommandSource . commandPalette , resource : Uri ) => selectAndRunTestMethod ( cmdSource , resource , true ) ) ) ;
114114 // tslint:disable-next-line:no-unnecessary-callback-wrapper
115- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Select_And_Run_File , ( cmdSource : CommandSource = CommandSource . commandPalette ) => selectAndRunTestFile ( cmdSource ) ) ) ;
115+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Select_And_Run_File , ( _ , cmdSource : CommandSource = CommandSource . commandPalette ) => selectAndRunTestFile ( cmdSource ) ) ) ;
116116 // tslint:disable-next-line:no-unnecessary-callback-wrapper
117- disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Run_Current_File , ( cmdSource : CommandSource = CommandSource . commandPalette ) => runCurrentTestFile ( cmdSource ) ) ) ;
117+ disposables . push ( vscode . commands . registerCommand ( constants . Commands . Tests_Run_Current_File , ( _ , cmdSource : CommandSource = CommandSource . commandPalette ) => runCurrentTestFile ( cmdSource ) ) ) ;
118118
119119 return disposables ;
120120}
0 commit comments