TODO for display order

This commit is contained in:
rebornix
2020-03-02 11:09:37 -08:00
parent 110c35e4a4
commit 66bdaba5f8

View File

@@ -329,6 +329,7 @@ export class ExtHostNotebookDocument implements vscode.NotebookDocument, vscode.
transformMimeTypes(cell: ExtHostCell, output: vscode.CellDisplayOutput): ITransformedDisplayOutputDto {
let mimeTypes = Object.keys(output.data);
// TODO@rebornix, the document display order might be assigned a bit later. We need to postpone sending the outputs to the core side.
const sorted = mimeTypes.sort((a, b) => {
return this.getMimeTypeOrder(a) - this.getMimeTypeOrder(b);
});