fix: actually move it upwards

This commit is contained in:
iCrawl 2019-08-03 14:36:43 +02:00
parent cc849f39d0
commit d402fbb13c
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE

View file

@ -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);