diff --git a/test/smoke/src/main.ts b/test/smoke/src/main.ts index 500746e4c28..937e649ce34 100644 --- a/test/smoke/src/main.ts +++ b/test/smoke/src/main.ts @@ -101,10 +101,10 @@ function getKeybindingPlatform(): string { function toUri(path: string): string { if (process.platform === 'win32') { - return `file:///${path.replace(/\\/g, '/')}`; + return `${path.replace(/\\/g, '/')}`; } - return `file://${path}`; + return `${path}`; } async function setup(): Promise { @@ -127,11 +127,16 @@ async function setup(): Promise { if (!fs.existsSync(workspacePath)) { console.log('*** Creating workspace file...'); const workspace = { - id: (Date.now() + Math.round(Math.random() * 1000)).toString(), folders: [ - toUri(path.join(testRepoLocalDir, 'public')), - toUri(path.join(testRepoLocalDir, 'routes')), - toUri(path.join(testRepoLocalDir, 'views')) + { + path: toUri(path.join(testRepoLocalDir, 'public')) + }, + { + path: toUri(path.join(testRepoLocalDir, 'routes')) + }, + { + path: toUri(path.join(testRepoLocalDir, 'views')) + } ] };