From 3ea67dc68ac1d0a4e58878a6e2e96234aa98565c Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 2 May 2018 16:59:54 +0200 Subject: [PATCH] don't detect relative path links for fsps, #48951 --- src/vs/workbench/api/node/extHostFileSystem.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vs/workbench/api/node/extHostFileSystem.ts b/src/vs/workbench/api/node/extHostFileSystem.ts index 927ab3d434b..34ba260d829 100644 --- a/src/vs/workbench/api/node/extHostFileSystem.ts +++ b/src/vs/workbench/api/node/extHostFileSystem.ts @@ -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 }); }