mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
display unknown text mime outputs as plain text (#203849)
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user