mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Fix #144622 using mime text/x-json instead of application/json
This commit is contained in:
@@ -3204,7 +3204,7 @@ export class NotebookCellOutputItem {
|
||||
return new NotebookCellOutputItem(bytes, mime);
|
||||
}
|
||||
|
||||
static json(value: any, mime: string = 'application/json'): NotebookCellOutputItem {
|
||||
static json(value: any, mime: string = 'text/x-json'): NotebookCellOutputItem {
|
||||
const rawStr = JSON.stringify(value, undefined, '\t');
|
||||
return NotebookCellOutputItem.text(rawStr, mime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user