public Task <bool> CanCreateDataPointAsync(CodeLensDescriptor descriptor, CodeLensDescriptorContext context, CancellationToken token) { Debug.Assert(descriptor != null); var gitRepo = GitUtil.ProbeGitRepository(descriptor.FilePath, out string repoRoot); return(Task.FromResult <bool>(gitRepo != null)); }
public GitCommitDataPoint(CodeLensDescriptor descriptor) { this.descriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor)); this.gitRepo = GitUtil.ProbeGitRepository(descriptor.FilePath, out this.gitRepoRootPath); }