"editor.links": true => File not found error with absolute href paths. Fixes #40445

This commit is contained in:
Martin Aeschlimann 2017-12-19 12:15:48 +01:00
parent b0f8cbb5f7
commit 1c601c75ad

View file

@ -329,7 +329,7 @@ connection.onDocumentLinks(documentLinkParam => {
return links;
});
function getRootFolder(docUri: string): string | undefined | null {
function getRootFolder(docUri: string): string | undefined {
if (workspaceFolders) {
for (let folder of workspaceFolders) {
let folderURI = folder.uri;
@ -337,7 +337,7 @@ function getRootFolder(docUri: string): string | undefined | null {
folderURI = folderURI + '/';
}
if (startsWith(docUri, folderURI)) {
return folderURI;
return uri.parse(folderURI).fsPath;
}
}
return void 0;