Skip to content

Commit

Permalink
Merge branch 'release/1.3.3' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhioromano committed Apr 1, 2022
2 parents 3026b25 + 1123b9a commit 4808b1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Binary file modified icon.drawio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-gitflow",
"displayName": "Git Flow",
"description": "Git-Flow support for VS Code",
"version": "1.3.2",
"version": "1.3.3",
"engines": {
"vscode": "^1.64.0"
},
Expand Down
8 changes: 7 additions & 1 deletion src/lib/logger.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { time } from "console";
import * as vscode from "vscode";
import { Disposable } from "./disposables";

Expand All @@ -9,11 +10,14 @@ export enum LogLevels {

export class Logger extends Disposable {
private readonly channel: vscode.OutputChannel;
private time = 0;

constructor() {
super();
this.channel = vscode.window.createOutputChannel("Git Flow");
this.registerDisposable(this.channel);
let t = new Date();
this.time = t.getTime();
}

show() {
Expand All @@ -33,6 +37,8 @@ export class Logger extends Disposable {
) {
//return;
}
this.channel.appendLine(`${level}: [${cmd}] ${msg}`);
let t = new Date();
this.channel.appendLine(`${level}: (${t.getTime() - this.time}ms) [${cmd}] ${msg}`);
this.time = t.getTime();
}
}

0 comments on commit 4808b1e

Please sign in to comment.