display unknown text mime outputs as plain text (#203849)

This commit is contained in:
Aaron Munger
2024-01-31 08:51:41 -08:00
committed by GitHub
parent 98332892fd
commit ef40932ae9
2 changed files with 17 additions and 7 deletions

View File

@@ -515,6 +515,11 @@ export const activate: ActivationFunction<void> = (ctx) => {
}
break;
default:
if (outputInfo.mime.indexOf('text/') > -1) {
disposables.get(outputInfo.id)?.dispose();
const disposable = renderText(outputInfo, element, latestContext);
disposables.set(outputInfo.id, disposable);
}
break;
}
if (element.querySelector('div')) {