Error message interrupt and frustrate. Fixes #15018

This commit is contained in:
Martin Aeschlimann 2016-11-09 16:34:49 +01:00
parent bbce8de5c2
commit a79ebfdb0c

View file

@ -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);