mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
committed by
GitHub
parent
b24fefc540
commit
5431050e5f
@@ -30,8 +30,9 @@ export function getDocumentContext(documentUri: string, workspaceFolders: Worksp
|
||||
return folderUri + ref.substring(1);
|
||||
}
|
||||
}
|
||||
base = base.substring(0, base.lastIndexOf('/') + 1);
|
||||
return Utils.resolvePath(URI.parse(base), ref).toString(true);
|
||||
const baseUri = URI.parse(base);
|
||||
const baseUriDir = baseUri.path.endsWith('/') ? baseUri : Utils.dirname(baseUri);
|
||||
return Utils.resolvePath(baseUriDir, ref).toString(true);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user