mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-24 09:45:39 -05:00
Prepare for initial preview release
This commit is contained in:
@@ -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)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user