diff --git a/src/server/serverUtils/contentLoader.ts b/src/server/serverUtils/contentLoader.ts index 7b3273c4..c6645be8 100644 --- a/src/server/serverUtils/contentLoader.ts +++ b/src/server/serverUtils/contentLoader.ts @@ -301,7 +301,7 @@ export class ContentLoader extends Disposable { if (workspaceDocuments[i].languageId == 'html') { fileContents = this._injectIntoFile(fileContents); - contentType = 'text/html'; + contentType = contentType.includes('html') ? contentType : 'text/html'; } const fileContentsBuffer = Buffer.from(fileContents);