Adds error messages for failed operations

Adds showHistory command support to CodeLens
Fixes and improve the showHistory explorer
Refactoring
This commit is contained in:
Eric Amodio
2016-11-10 03:22:43 -05:00
parent 562afeaaad
commit f4410be30a
25 changed files with 584 additions and 305 deletions

View File

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