File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/platform/userDataProfile/electron-main Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { Disposable } from 'vs/base/common/lifecycle';
7
7
import { ILifecycleMainService , } from 'vs/platform/lifecycle/electron-main/lifecycleMainService' ;
8
8
import { ICodeWindow , LoadReason } from 'vs/platform/window/electron-main/window' ;
9
9
import { IUserDataProfilesMainService } from 'vs/platform/userDataProfile/electron-main/userDataProfile' ;
10
- import { IAnyWorkspaceIdentifier , isEmptyWorkspaceIdentifier , toWorkspaceIdentifier } from 'vs/platform/workspace/common/workspace' ;
10
+ import { IAnyWorkspaceIdentifier , toWorkspaceIdentifier } from 'vs/platform/workspace/common/workspace' ;
11
11
import { RunOnceScheduler } from 'vs/base/common/async' ;
12
12
import { IWindowsMainService } from 'vs/platform/windows/electron-main/windows' ;
13
13
@@ -31,7 +31,7 @@ export class UserDataProfilesHandler extends Disposable {
31
31
private async unsetProfileForWorkspace ( window : ICodeWindow ) : Promise < void > {
32
32
const workspace = this . getWorkspace ( window ) ;
33
33
const profile = this . userDataProfilesService . getProfileForWorkspace ( workspace ) ;
34
- if ( profile && ( isEmptyWorkspaceIdentifier ( workspace ) || profile . isTransient ) ) {
34
+ if ( profile ? .isTransient ) {
35
35
this . userDataProfilesService . unsetWorkspace ( workspace , profile . isTransient ) ;
36
36
if ( profile . isTransient ) {
37
37
await this . userDataProfilesService . cleanUpTransientProfiles ( ) ;
You can’t perform that action at this time.
0 commit comments