mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Error message interrupt and frustrate. Fixes #15018
This commit is contained in:
@@ -242,7 +242,7 @@ connection.onDocumentLinks(documentLinkParam => {
|
||||
let document = documents.get(documentLinkParam.textDocument.uri);
|
||||
let documentContext: DocumentContext = {
|
||||
resolveReference: ref => {
|
||||
if (ref[0] === '/') {
|
||||
if (workspacePath && ref[0] === '/') {
|
||||
return uri.file(path.join(workspacePath, ref)).toString();
|
||||
}
|
||||
return url.resolve(document.uri, ref);
|
||||
|
||||
Reference in New Issue
Block a user