don't detect relative path links for fsps, #48951

This commit is contained in:
Johannes Rieken
2018-05-02 16:59:54 +02:00
parent b9dce0f76c
commit 3ea67dc68a

View File

@@ -49,6 +49,9 @@ class FsLinkProvider implements vscode.DocumentLinkProvider {
let m: RegExpMatchArray;
while (m = this._regex.exec(textLine.text)) {
const target = URI.parse(m[0]);
if (target.path[0] !== '/') {
continue;
}
const range = new Range(line, this._regex.lastIndex - m[0].length, line, this._regex.lastIndex);
result.push({ target, range });
}