Fixes logging to clean up on extension deactivate

This commit is contained in:
Eric Amodio
2017-02-26 23:50:29 -05:00
parent a552332234
commit 780423b195
4 changed files with 42 additions and 32 deletions

View File

@@ -27,6 +27,8 @@ import { Logger } from './logger';
// this method is called when your extension is activated
export async function activate(context: ExtensionContext) {
Logger.configure(context);
// Workspace not using a folder. No access to git repo.
if (!workspace.rootPath) {
Logger.warn('GitLens inactive: no rootPath');