mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-17 17:25:51 -05:00
Prepare for initial preview release
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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