From 40222597c94f8071a9ad89292aa832be942ee578 Mon Sep 17 00:00:00 2001 From: Haryz Izzudin Date: Sun, 24 Dec 2017 21:44:20 +0800 Subject: [PATCH] Fix boolean expression to determine start timestamp (#20) --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index db5334f..0d087ef 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -174,7 +174,7 @@ function setActivity(workspaceElapsedTime: boolean = false): void { activity = { details: generateDetails('detailsDebugging', 'detailsEditing', 'detailsIdle'), state: generateDetails('lowerDetailsDebugging', 'lowerDetailsEditing', 'lowerDetailsIdle'), - startTimestamp: !previousTimestamp && !workspaceElapsedTime ? new Date().getTime() / 1000 : previousTimestamp, + startTimestamp: previousTimestamp && workspaceElapsedTime ? previousTimestamp : new Date().getTime() / 1000, largeImageKey: largeImageKey ? largeImageKey.image || largeImageKey