提交 9d36073d 编写于 作者: J Johannes Rieken

ignore scheme-less links, #8223

上级 7929c74f
......@@ -60,6 +60,12 @@ export class OpenerService implements IOpenerService {
};
// remove fragment
resource = resource.with({ fragment: '' });
}
if (!resource.scheme) {
// we cannot handle those
return TPromise.as(undefined);
} else if (resource.scheme === Schemas.file) {
resource = URI.file(normalize(resource.fsPath)); // workaround for non-normalized paths (https://github.com/Microsoft/vscode/issues/12954)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册