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

@@ -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)));