mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Error message interrupt and frustrate. Fixes #15018
This commit is contained in:
parent
bbce8de5c2
commit
a79ebfdb0c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue