From ed9a93cc7272bf29a74d6ff05ef217fa9e0932d9 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Sun, 22 Nov 2015 10:28:26 +0100 Subject: [PATCH] fix message list ordering (fixes #279) --- src/vs/base/browser/ui/messagelist/messageList.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/base/browser/ui/messagelist/messageList.ts b/src/vs/base/browser/ui/messagelist/messageList.ts index 4dc5aec208c..f4fd2588017 100644 --- a/src/vs/base/browser/ui/messagelist/messageList.ts +++ b/src/vs/base/browser/ui/messagelist/messageList.ts @@ -130,8 +130,8 @@ export class MessageList { // Trigger Auto-Purge of messages to keep list small this.purgeMessages(); - // Store in Memory - this.messages.push({ + // Store in Memory (new messages come first so that they show up on top) + this.messages.unshift({ id: id, text: message, severity: severity,