提交 613aa464 编写于 作者: A Andre Weinand

support relative paths for backward compatibility; fixes #61088

上级 4f09f1aa
......@@ -56,9 +56,8 @@ export class Source {
if (paths.isAbsolute_posix(path) || paths.isAbsolute_win32(path)) {
this.uri = uri.file(path);
} else {
// path is relative
// should not happen because relative paths always have a sourceReference > 0
console.error('cannot handle relative paths without sourceReference');
// path is relative: this is not supported but if it happens we create a bogus uri for backward compatibility
this.uri = uri.file(path);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册