Skip to content

Commit 414b609

Browse files
authored
1 parent 026aae2 commit 414b609

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ import { Categories } from '../../../../platform/action/common/actionCommonCateg
88
import { Action2, registerAction2 } from '../../../../platform/actions/common/actions.js';
99
import { ServicesAccessor } from '../../../../platform/instantiation/common/instantiation.js';
1010
import { IUserDataProfilesService } from '../../../../platform/userDataProfile/common/userDataProfile.js';
11-
import { IUserDataProfileManagementService, PROFILES_CATEGORY } from '../../../services/userDataProfile/common/userDataProfile.js';
11+
import { IHostService } from '../../../services/host/browser/host.js';
12+
import { PROFILES_CATEGORY } from '../../../services/userDataProfile/common/userDataProfile.js';
1213

1314
class CreateTransientProfileAction extends Action2 {
1415
static readonly ID = 'workbench.profiles.actions.createTemporaryProfile';
15-
static readonly TITLE = localize2('create temporary profile', "Create a Temporary Profile");
16+
static readonly TITLE = localize2('create temporary profile', "New Window with Temporary Profile");
1617
constructor() {
1718
super({
1819
id: CreateTransientProfileAction.ID,
@@ -23,7 +24,7 @@ class CreateTransientProfileAction extends Action2 {
2324
}
2425

2526
async run(accessor: ServicesAccessor) {
26-
return accessor.get(IUserDataProfileManagementService).createAndEnterTransientProfile();
27+
accessor.get(IHostService).openWindow({ forceTempProfile: true });
2728
}
2829
}
2930

0 commit comments

Comments
 (0)