mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
Fix #34207
This commit is contained in:
@@ -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'))
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user