mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
don't detect relative path links for fsps, #48951
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user