mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
"editor.links": true => File not found error with absolute href paths. Fixes #40445
This commit is contained in:
parent
b0f8cbb5f7
commit
1c601c75ad
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue