From 5ffd4753bd11229b76c6c212217cfa676cbc5c98 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 27 Feb 2017 00:58:54 -0500 Subject: [PATCH] Changes debugging output to be only when verbose --- src/gitCodeLensProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gitCodeLensProvider.ts b/src/gitCodeLensProvider.ts index 77b3523..49d5584 100644 --- a/src/gitCodeLensProvider.ts +++ b/src/gitCodeLensProvider.ts @@ -5,7 +5,7 @@ import { Commands } from './commands'; import { BuiltInCommands, DocumentSchemes } from './constants'; import { CodeLensCommand, CodeLensLocation, IConfig, ICodeLensLanguageLocation } from './configuration'; import GitProvider, { GitCommit, GitUri, IGitBlame, IGitBlameLines } from './gitProvider'; -import { Logger } from './logger'; +import { Logger, OutputLevel } from './logger'; import * as moment from 'moment'; export class GitRecentChangeCodeLens extends CodeLens { @@ -204,7 +204,7 @@ export default class GitCodeLensProvider implements CodeLensProvider { const recentCommit = Iterables.first(blame.commits.values()); let title = `${recentCommit.author}, ${moment(recentCommit.date).fromNow()}`; - if (this._config.advanced.debug) { + if (this._config.advanced.debug && this._config.advanced.output.level === OutputLevel.Verbose) { title += ` [${recentCommit.sha}, Symbol(${SymbolKind[lens.symbolKind]}), Lines(${lens.blameRange.start.line + 1}-${lens.blameRange.end.line + 1})]`; }