mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-18 17:25:54 -05:00
Adds error messages for failed operations
Adds showHistory command support to CodeLens Fixes and improve the showHistory explorer Refactoring
This commit is contained in:
@@ -26,7 +26,7 @@ function onConfigurationChange() {
|
||||
|
||||
export class Logger {
|
||||
static log(message?: any, ...params: any[]): void {
|
||||
if (config.output.debug) {
|
||||
if (config.debug) {
|
||||
console.log('[GitLens]', message, ...params);
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export class Logger {
|
||||
}
|
||||
|
||||
static error(message?: any, ...params: any[]): void {
|
||||
if (config.output.debug) {
|
||||
if (config.debug) {
|
||||
console.error('[GitLens]', message, ...params);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export class Logger {
|
||||
}
|
||||
|
||||
static warn(message?: any, ...params: any[]): void {
|
||||
if (config.output.debug) {
|
||||
if (config.debug) {
|
||||
console.warn('[GitLens]', message, ...params);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user