mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
"editor.links": true => File not found error with absolute href paths. Fixes #40445
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user