Ver a proveniência

Changes debugging output to be only when verbose

main
Eric Amodio há 7 anos
ascendente
cometimento
5ffd4753bd
1 ficheiros alterados com 2 adições e 2 eliminações
  1. +2
    -2
      src/gitCodeLensProvider.ts

+ 2
- 2
src/gitCodeLensProvider.ts Ver ficheiro

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

Carregando…
Cancelar
Guardar