@@ -11,7 +11,6 @@ import { InstantiationService } from 'vs/platform/instantiation/common/instantia
1111import { IExtensionPoint } from 'vs/workbench/services/extensions/common/extensionsRegistry' ;
1212import { Event , Emitter } from 'vs/base/common/event' ;
1313import { NullLogService } from 'vs/platform/log/common/log' ;
14- import { IProgressService2 } from 'vs/platform/progress/common/progress' ;
1514
1615class SimpleExtensionService implements IExtensionService {
1716 _serviceBrand : any ;
@@ -54,17 +53,6 @@ class SimpleExtensionService implements IExtensionService {
5453
5554suite ( 'CommandService' , function ( ) {
5655
57- interface Ctor < T > {
58- new ( ) : T ;
59- }
60- function mock < T > ( ) : Ctor < T > {
61- return function ( ) { } as any ;
62- }
63-
64- let progressService = new class extends mock < IProgressService2 > ( ) {
65- withProgress ( ) { return null ; }
66- } ;
67-
6856 let commandRegistration : IDisposable ;
6957
7058 setup ( function ( ) {
@@ -84,7 +72,7 @@ suite('CommandService', function () {
8472 lastEvent = activationEvent ;
8573 return super . activateByEvent ( activationEvent ) ;
8674 }
87- } , new NullLogService ( ) , progressService ) ;
75+ } , new NullLogService ( ) ) ;
8876
8977 return service . executeCommand ( 'foo' ) . then ( ( ) => {
9078 assert . ok ( lastEvent , 'onCommand:foo' ) ;
@@ -104,7 +92,7 @@ suite('CommandService', function () {
10492 }
10593 } ;
10694
107- let service = new CommandService ( new InstantiationService ( ) , extensionService , new NullLogService ( ) , progressService ) ;
95+ let service = new CommandService ( new InstantiationService ( ) , extensionService , new NullLogService ( ) ) ;
10896
10997 await extensionService . whenInstalledExtensionsRegistered ( ) ;
11098
@@ -122,7 +110,7 @@ suite('CommandService', function () {
122110 whenInstalledExtensionsRegistered ( ) {
123111 return new Promise < boolean > ( _resolve => { /*ignore*/ } ) ;
124112 }
125- } , new NullLogService ( ) , progressService ) ;
113+ } , new NullLogService ( ) ) ;
126114
127115 service . executeCommand ( 'bar' ) ;
128116 assert . equal ( callCounter , 1 ) ;
@@ -139,7 +127,7 @@ suite('CommandService', function () {
139127 whenInstalledExtensionsRegistered ( ) {
140128 return whenInstalledExtensionsRegistered ;
141129 }
142- } , new NullLogService ( ) , progressService ) ;
130+ } , new NullLogService ( ) ) ;
143131
144132 let r = service . executeCommand ( 'bar' ) ;
145133 assert . equal ( callCounter , 0 ) ;
0 commit comments