Skip to content

Commit

Permalink
Load data urls with fetch instead of using file service (microsoft#19…
Browse files Browse the repository at this point in the history
…9039)

fix: load data urls with fetch instead of using file service

Co-authored-by: Loïc Mangeonjean <[email protected]>
  • Loading branch information
CGNonofr and Loïc Mangeonjean authored Nov 24, 2023
1 parent cb7473c commit c0c5611
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ExtensionResourceLoaderService extends AbstractExtensionResourceLoaderServ
async readExtensionResource(uri: URI): Promise<string> {
uri = FileAccess.uriToBrowserUri(uri);

if (uri.scheme !== Schemas.http && uri.scheme !== Schemas.https) {
if (uri.scheme !== Schemas.http && uri.scheme !== Schemas.https && uri.scheme !== Schemas.data) {
const result = await this._fileService.readFile(uri);
return result.value.toString();
}
Expand Down

0 comments on commit c0c5611

Please sign in to comment.