@@ -13,8 +13,8 @@ import extfs = require('vs/base/node/extfs');
1313import pfs = require( 'vs/base/node/pfs' ) ;
1414import { EnvironmentService } from 'vs/platform/environment/node/environmentService' ;
1515import { parseArgs } from 'vs/platform/environment/node/argv' ;
16- import { WorkspacesMainService } from 'vs/platform/workspaces/electron-main/workspacesMainService' ;
17- import { IStoredWorkspace , WORKSPACE_EXTENSION , IWorkspaceSavedEvent , IWorkspaceIdentifier } from 'vs/platform/workspaces/common/workspaces' ;
16+ import { WorkspacesMainService , IStoredWorkspace } from 'vs/platform/workspaces/electron-main/workspacesMainService' ;
17+ import { WORKSPACE_EXTENSION , IWorkspaceSavedEvent , IWorkspaceIdentifier } from 'vs/platform/workspaces/common/workspaces' ;
1818import { LogMainService } from 'vs/platform/log/common/log' ;
1919import URI from 'vs/base/common/uri' ;
2020
@@ -138,7 +138,7 @@ suite('WorkspacesMainService', () => {
138138 fs . writeFileSync ( workspace . configPath , JSON . stringify ( { folders : [ { path : './ticino-playground/lib' } ] } ) ) ;
139139
140140 const resolved = service . resolveWorkspaceSync ( workspace . configPath ) ;
141- assert . equal ( URI . file ( resolved . folders [ 0 ] . path ) . fsPath , URI . file ( path . join ( path . dirname ( workspace . configPath ) , 'ticino-playground' , 'lib' ) ) . fsPath ) ;
141+ assert . equal ( resolved . folders [ 0 ] . uri . fsPath , URI . file ( path . join ( path . dirname ( workspace . configPath ) , 'ticino-playground' , 'lib' ) ) . fsPath ) ;
142142
143143 done ( ) ;
144144 } ) ;
@@ -149,7 +149,7 @@ suite('WorkspacesMainService', () => {
149149 fs . writeFileSync ( workspace . configPath , JSON . stringify ( { folders : [ { path : './ticino-playground/lib/../other' } ] } ) ) ;
150150
151151 const resolved = service . resolveWorkspaceSync ( workspace . configPath ) ;
152- assert . equal ( URI . file ( resolved . folders [ 0 ] . path ) . fsPath , URI . file ( path . join ( path . dirname ( workspace . configPath ) , 'ticino-playground' , 'other' ) ) . fsPath ) ;
152+ assert . equal ( resolved . folders [ 0 ] . uri . fsPath , URI . file ( path . join ( path . dirname ( workspace . configPath ) , 'ticino-playground' , 'other' ) ) . fsPath ) ;
153153
154154 done ( ) ;
155155 } ) ;
@@ -160,7 +160,7 @@ suite('WorkspacesMainService', () => {
160160 fs . writeFileSync ( workspace . configPath , JSON . stringify ( { folders : [ { path : 'ticino-playground/lib' } ] } ) ) ;
161161
162162 const resolved = service . resolveWorkspaceSync ( workspace . configPath ) ;
163- assert . equal ( URI . file ( resolved . folders [ 0 ] . path ) . fsPath , URI . file ( path . join ( path . dirname ( workspace . configPath ) , 'ticino-playground' , 'lib' ) ) . fsPath ) ;
163+ assert . equal ( resolved . folders [ 0 ] . uri . fsPath , URI . file ( path . join ( path . dirname ( workspace . configPath ) , 'ticino-playground' , 'lib' ) ) . fsPath ) ;
164164
165165 done ( ) ;
166166 } ) ;
@@ -171,7 +171,7 @@ suite('WorkspacesMainService', () => {
171171 fs . writeFileSync ( workspace . configPath , '{ "folders": [ { "path": "./ticino-playground/lib" } , ] }' ) ; // trailing comma
172172
173173 const resolved = service . resolveWorkspaceSync ( workspace . configPath ) ;
174- assert . equal ( URI . file ( resolved . folders [ 0 ] . path ) . fsPath , URI . file ( path . join ( path . dirname ( workspace . configPath ) , 'ticino-playground' , 'lib' ) ) . fsPath ) ;
174+ assert . equal ( resolved . folders [ 0 ] . uri . fsPath , URI . file ( path . join ( path . dirname ( workspace . configPath ) , 'ticino-playground' , 'lib' ) ) . fsPath ) ;
175175
176176 done ( ) ;
177177 } ) ;
0 commit comments