Browse Source

Changes debugging output to be only when verbose

main
Eric Amodio 7 years ago
parent
commit
5ffd4753bd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/gitCodeLensProvider.ts

+ 2
- 2
src/gitCodeLensProvider.ts View File

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

Loading…
Cancel
Save