mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 17:23:42 -05:00
Merge VS Code 1.31.1 (#4283)
This commit is contained in:
10
src/bootstrap.js
vendored
10
src/bootstrap.js
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user