This commit is contained in:
Sandeep Somavarapu
2017-09-12 11:01:39 +02:00
parent 7bbf770f04
commit 792fe7cdb4

View File

@@ -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<void> {
@@ -127,11 +127,16 @@ async function setup(): Promise<void> {
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'))
}
]
};