Merge VS Code 1.31.1 (#4283)

This commit is contained in:
Matt Irvine
2019-03-15 13:09:45 -07:00
committed by GitHub
parent 7d31575149
commit 86bac90001
1716 changed files with 53308 additions and 48375 deletions

10
src/bootstrap.js vendored
View File

@@ -69,7 +69,15 @@ exports.uriFromPath = function (_path) {
pathName = '/' + pathName;
}
return encodeURI('file://' + pathName).replace(/#/g, '%23');
/** @type {string} */
let uri;
if (process.platform === 'win32' && pathName.startsWith('//')) { // specially handle Windows UNC paths
uri = encodeURI('file:' + pathName);
} else {
uri = encodeURI('file://' + pathName);
}
return uri.replace(/#/g, '%23');
};
//#endregion