Reduces the size of the vsix

This commit is contained in:
Eric Amodio
2016-09-19 21:53:13 -04:00
parent 7b4dd77fbc
commit 30b1fba8d4
7 changed files with 15 additions and 9 deletions

View File

@@ -3,9 +3,10 @@ import {CancellationToken, CodeLens, CodeLensProvider, commands, DocumentSelecto
import {BuiltInCommands, Commands, DocumentSchemes, WorkspaceState} from './constants';
import {CodeLensCommand, CodeLensLocation, ICodeLensesConfig} from './configuration';
import GitProvider, {IGitBlame, IGitBlameLines, IGitCommit} from './gitProvider';
import * as _ from 'lodash';
import * as moment from 'moment';
const escapeRegExp = require('lodash.escapeRegExp');
export class GitRecentChangeCodeLens extends CodeLens {
constructor(private git: GitProvider, public fileName: string, public symbolKind: SymbolKind, public blameRange: Range, range: Range) {
super(range);
@@ -105,7 +106,7 @@ export default class GitCodeLensProvider implements CodeLensProvider {
let startChar = -1;
try {
startChar = line.text.search(`\\b${_.escapeRegExp(symbol.name)}\\b`);
startChar = line.text.search(`\\b${escapeRegExp(symbol.name)}\\b`);
}
catch (ex) { }
if (startChar === -1) {