Prepare for initial preview release

This commit is contained in:
Eric Amodio
2016-08-26 19:09:22 -04:00
parent 1576c08fa8
commit 33fe3c55f7
6 changed files with 39 additions and 58 deletions

View File

@@ -91,7 +91,7 @@ export default class GitCodeLensProvider implements CodeLensProvider {
let sorted = lines.sort((a, b) => b.date.getTime() - a.date.getTime());
recentLine = sorted[0];
console.log(lens.fileName, 'Blame lines:', sorted);
// console.log(lens.fileName, 'Blame lines:', sorted);
let map: Map<string, IGitBlameLine[]> = new Map();
sorted.forEach(l => {

View File

@@ -9,9 +9,13 @@ import {Commands, VsCodeCommands} from './constants';
export function activate(context: ExtensionContext) {
// Workspace not using a folder. No access to git repo.
if (!workspace.rootPath) {
console.warn('Git CodeLens inactive: no rootPath');
return;
}
console.log(`Git CodeLens active: ${workspace.rootPath}`);
gitRepoPath(workspace.rootPath).then(repoPath => {
context.subscriptions.push(workspace.registerTextDocumentContentProvider(GitContentProvider.scheme, new GitContentProvider(context)));