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

support relative paths for backward compatibility; fixes #61088

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