File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/vs/platform/userDataProfile/electron-main Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export interface IUserDataProfilesMainService extends IUserDataProfilesService {
21
21
isEnabled ( ) : boolean ;
22
22
getOrSetProfileForWorkspace ( workspaceIdentifier : WorkspaceIdentifier , profileToSet ?: IUserDataProfile ) : IUserDataProfile ;
23
23
setProfileForWorkspaceSync ( workspaceIdentifier : WorkspaceIdentifier , profileToSet : IUserDataProfile ) : void ;
24
- checkAndCreateProfileFromCli ( args : NativeParsedArgs ) : Promise < IUserDataProfile > | undefined ;
24
+ checkAndCreateProfileFromCli ( args : NativeParsedArgs ) : Promise < NativeParsedArgs > | undefined ;
25
25
unsetWorkspace ( workspaceIdentifier : WorkspaceIdentifier , transient ?: boolean ) : void ;
26
26
readonly onWillCreateProfile : Event < WillCreateProfileEvent > ;
27
27
readonly onWillRemoveProfile : Event < WillRemoveProfileEvent > ;
@@ -43,7 +43,7 @@ export class UserDataProfilesMainService extends UserDataProfilesService impleme
43
43
return this . enabled ;
44
44
}
45
45
46
- checkAndCreateProfileFromCli ( args : NativeParsedArgs ) : Promise < IUserDataProfile > | undefined {
46
+ checkAndCreateProfileFromCli ( args : NativeParsedArgs ) : Promise < NativeParsedArgs > | undefined {
47
47
if ( ! this . isEnabled ( ) ) {
48
48
return undefined ;
49
49
}
@@ -55,14 +55,14 @@ export class UserDataProfilesMainService extends UserDataProfilesService impleme
55
55
if ( this . profiles . some ( p => p . name === args . profile ) ) {
56
56
return undefined ;
57
57
}
58
- return this . createProfile ( args . profile ) ;
58
+ return this . createProfile ( args . profile ) . then ( ( ) => args ) ;
59
59
}
60
60
if ( args [ 'profile-transient' ] ) {
61
61
return this . createTransientProfile ( )
62
62
. then ( profile => {
63
63
// Set the profile name to use
64
64
args . profile = profile . name ;
65
- return profile ;
65
+ return args ;
66
66
} ) ;
67
67
}
68
68
return undefined ;
You can’t perform that action at this time.
0 commit comments