提交 9a28248b 编写于 作者: B Benjamin Pasero

💄

上级 e9d6a653
......@@ -71,7 +71,7 @@ exports.uriFromPath = function (_path) {
/** @type {string} */
let uri;
if (pathName.startsWith('//')) {
if (process.platform === 'win32' && pathName.startsWith('//')) { // specially handle Windows UNC paths
uri = encodeURI('file:' + pathName);
} else {
uri = encodeURI('file://' + pathName);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册