From d402fbb13c017c8aff6bb93a1f62b9cf9b87ad76 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Sat, 3 Aug 2019 14:36:43 +0200 Subject: [PATCH] fix: actually move it upwards --- src/structures/Activity.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/Activity.ts b/src/structures/Activity.ts index 2bb39fb..eb8640d 100644 --- a/src/structures/Activity.ts +++ b/src/structures/Activity.ts @@ -50,9 +50,10 @@ export default class Activity implements Disposable { return this._state; } - public generate(workspaceElapsedTime: boolean = false): State { + public generate(workspaceElapsedTime: boolean = false): State | null { let largeImageKey: any = 'vscode-big'; if (window.activeTextEditor) { + if (window.activeTextEditor.document.languageId === 'Log') return this._state; if (window.activeTextEditor.document.fileName === this._lastKnownFile) { return this._state = { ...this._state, @@ -209,7 +210,6 @@ export default class Activity implements Disposable { let workspaceFolder = null; let fullDirname = null; if (window.activeTextEditor) { - if (window.activeTextEditor.document.languageId === 'Log') return raw; filename = basename(window.activeTextEditor.document.fileName); const { dir } = parse(window.activeTextEditor.document.fileName);