Skip to content

Commit 60afef7

Browse files
committed
fix tests
1 parent 6f672e5 commit 60afef7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/vs/workbench/services/extensions/test/browser/extensionService.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ import { TestEnvironmentService, TestFileService, TestLifecycleService, TestRemo
3333
import { TestContextService } from 'vs/workbench/test/common/workbenchTestServices';
3434
import { mock } from 'vs/base/test/common/mock';
3535
import { IExtensionHostManager } from 'vs/workbench/services/extensions/common/extensionHostManager';
36+
import { IUserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfile';
37+
import { UserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfileService';
38+
import { IUserDataProfilesService, UserDataProfilesService } from 'vs/platform/userDataProfile/common/userDataProfile';
3639

3740
suite('BrowserExtensionService', () => {
3841
test('pickRunningLocation', () => {
@@ -175,7 +178,9 @@ suite('ExtensionService', () => {
175178
[IWorkbenchExtensionEnablementService, TestWorkbenchExtensionEnablementService],
176179
[ITelemetryService, NullTelemetryService],
177180
[IEnvironmentService, TestEnvironmentService],
178-
[IWorkspaceTrustEnablementService, WorkspaceTrustEnablementService]
181+
[IWorkspaceTrustEnablementService, WorkspaceTrustEnablementService],
182+
[IUserDataProfilesService, UserDataProfilesService],
183+
[IUserDataProfileService, UserDataProfileService],
179184
]);
180185
extService = <MyTestExtensionService>instantiationService.get(IExtensionService);
181186
});

src/vs/workbench/services/userDataProfile/common/userDataProfileService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export class UserDataProfileService extends Disposable implements IUserDataProfi
1919
private _currentProfile: IUserDataProfile;
2020
get currentProfile(): IUserDataProfile { return this._currentProfile; }
2121

22-
constructor(currentProfile: IUserDataProfile, userDataProfilesService: IUserDataProfilesService) {
22+
constructor(
23+
currentProfile: IUserDataProfile,
24+
@IUserDataProfilesService userDataProfilesService: IUserDataProfilesService
25+
) {
2326
super();
2427
this._currentProfile = currentProfile;
2528
this._register(userDataProfilesService.onDidChangeProfiles(() => {

0 commit comments

Comments
 (0)