Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit aeb7f79

Browse files
authored
Merge pull request #1846 from github/xml-doc-comments
Repairing xml comments
2 parents 698f7b6 + 41ca8a2 commit aeb7f79

26 files changed

+48
-25
lines changed

src/GitHub.Api/ILoginManager.cs

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Task<User> LoginWithToken(
7272
/// Logs out of GitHub server.
7373
/// </summary>
7474
/// <param name="hostAddress">The address of the server.</param>
75+
/// <param name="client">An octokit client configured to access the server.</param>
7576
Task Logout(HostAddress hostAddress, IGitHubClient client);
7677
}
7778
}

src/GitHub.Api/LoginManager.cs

+2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ public class LoginManager : ILoginManager
3434
/// </summary>
3535
/// <param name="keychain">The keychain in which to store credentials.</param>
3636
/// <param name="twoFactorChallengeHandler">The handler for 2FA challenges.</param>
37+
/// <param name="oauthListener">The callback listener to signal successful login.</param>
3738
/// <param name="clientId">The application's client API ID.</param>
3839
/// <param name="clientSecret">The application's client API secret.</param>
40+
/// <param name="scopes">List of scopes to authenticate for</param>
3941
/// <param name="authorizationNote">An note to store with the authorization.</param>
4042
/// <param name="fingerprint">The machine fingerprint.</param>
4143
public LoginManager(

src/GitHub.App/Extensions/AkavacheExtensions.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,12 @@ static IObservable<T> GetAndFetchLatestFromIndex<T>(this IBlobCache This,
252252
/// <typeparam name="T"></typeparam>
253253
/// <param name="blobCache">The cache to retrieve the object from.</param>
254254
/// <param name="key">The key to look up the cache value with.</param>
255-
/// <param name="item">The item to add to the database</param>
255+
/// <param name="fetchFunc">The fetch function.</param>
256256
/// <param name="maxCacheDuration">
257257
/// The maximum age of a cache object before the object is treated as
258258
/// expired and unusable. Cache objects older than this will be treated
259259
/// as a cache miss.
260+
/// </param>
260261
/// <returns></returns>
261262
public static IObservable<T> PutAndUpdateIndex<T>(this IBlobCache blobCache,
262263
string key,

src/GitHub.App/Services/PullRequestEditorService.cs

+1
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ public IVsTextView FindActiveView()
336336
/// <param name="fromLines">The document we're navigating from.</param>
337337
/// <param name="toLines">The document we're navigating to.</param>
338338
/// <param name="line">The 0-based line we're navigating from.</param>
339+
/// <param name="matchLinesAbove"></param>
339340
/// <returns>The best matching line in <see cref="toLines"/></returns>
340341
public int FindMatchingLine(IList<string> fromLines, IList<string> toLines, int line, int matchLinesAbove = 0)
341342
{

src/GitHub.App/ViewModels/GitHubPane/PullRequestDetailViewModel.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ public sealed class PullRequestDetailViewModel : PanePageViewModelBase, IPullReq
6161
/// <summary>
6262
/// Initializes a new instance of the <see cref="PullRequestDetailViewModel"/> class.
6363
/// </summary>
64-
/// <param name="localRepository">The local repository.</param>
65-
/// <param name="modelService">The model service.</param>
6664
/// <param name="pullRequestsService">The pull requests service.</param>
6765
/// <param name="sessionManager">The pull request session manager.</param>
66+
/// <param name="modelServiceFactory">The model service factory</param>
6867
/// <param name="usageTracker">The usage tracker.</param>
6968
/// <param name="teamExplorerContext">The context for tracking repo changes</param>
69+
/// <param name="files">The view model which will display the changed files</param>
70+
/// <param name="syncSubmodulesCommand">A command that will be run when <see cref="SyncSubmodules"/> is executed</param>
7071
[ImportingConstructor]
7172
public PullRequestDetailViewModel(
7273
IPullRequestService pullRequestsService,
@@ -200,6 +201,7 @@ public string TargetBranchDisplayName
200201
private set { this.RaiseAndSetIfChanged(ref targetBranchDisplayName, value); }
201202
}
202203

204+
/// <summary>
203205
/// Gets a value indicating whether the pull request branch is checked out.
204206
/// </summary>
205207
public bool IsCheckedOut

src/GitHub.App/ViewModels/GitHubPane/PullRequestDirectoryNode.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class PullRequestDirectoryNode : IPullRequestDirectoryNode
1212
/// <summary>
1313
/// Initializes a new instance of the <see cref="PullRequestDirectoryNode"/> class.
1414
/// </summary>
15-
/// <param name="path">The path to the directory, relative to the repository.</param>
15+
/// <param name="relativePath">The path to the directory, relative to the repository.</param>
1616
public PullRequestDirectoryNode(string relativePath)
1717
{
1818
DirectoryName = System.IO.Path.GetFileName(relativePath);

src/GitHub.Exports.Reactive/Services/IGitClient.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public interface IGitClient
110110
/// </returns>
111111
Task<ContentChanges> CompareWith(IRepository repository, string sha1, string sha2, string path, byte[] contents);
112112

113+
/// <summary>
113114
/// Gets the value of a configuration key.
114115
/// </summary>
115116
/// <param name="repository">The repository.</param>
@@ -189,7 +190,7 @@ public interface IGitClient
189190
/// <summary>
190191
/// Find the merge base SHA between two commits.
191192
/// </summary>
192-
/// <param name="repository">The repository.</param>
193+
/// <param name="repo">The repository.</param>
193194
/// <param name="targetCloneUrl">The clone url of the PR target repo.</param>
194195
/// <param name="baseSha">The PR base SHA.</param>
195196
/// <param name="headSha">The PR head SHA.</param>
@@ -201,9 +202,10 @@ public interface IGitClient
201202
/// <exception cref="LibGit2Sharp.NotFoundException">Thrown when the merge base can't be found.</exception>
202203
Task<string> GetPullRequestMergeBase(IRepository repo, UriString targetCloneUrl, string baseSha, string headSha, string baseRef, int pullNumber);
203204

205+
/// <summary>
204206
/// Checks whether the current head is pushed to its remote tracking branch.
205207
/// </summary>
206-
/// <param name="repository">The repository.</param>
208+
/// <param name="repo">The repository.</param>
207209
/// <returns></returns>
208210
Task<bool> IsHeadPushed(IRepository repo);
209211

@@ -212,7 +214,7 @@ public interface IGitClient
212214
/// <paramref name="baseBranch"/> and <paramref name="compareBranch"/> and returns their
213215
/// commit messages.
214216
/// </summary>
215-
/// <param name="repository">The repository.</param>
217+
/// <param name="repo">The repository.</param>
216218
/// <param name="baseBranch">The base branch to find a merge base with.</param>
217219
/// <param name="compareBranch">The compare branch to find a merge base with.</param>
218220
/// <param name="maxCommits">The maximum number of commits to return.</param>

src/GitHub.Exports.Reactive/Services/IPullRequestService.cs

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public interface IPullRequestService
1818
/// <param name="owner">The repository owner.</param>
1919
/// <param name="name">The repository name.</param>
2020
/// <param name="after">The end cursor of the previous page, or null for the first page.</param>
21+
/// <param name="states">The pull request states to filter by</param>
2122
/// <returns>A page of pull request item models.</returns>
2223
Task<Page<PullRequestListItemModel>> ReadPullRequests(
2324
HostAddress address,
@@ -84,6 +85,7 @@ IObservable<IPullRequestModel> CreatePullRequest(IModelService modelService,
8485
/// Sync submodules on the current branch.
8586
/// </summary>
8687
/// <param name="repository">The repository.</param>
88+
/// <param name="progress">A method that will be called with progress messages</param>
8789
Task<bool> SyncSubmodules(ILocalRepositoryModel repository, Action<string> progress);
8890

8991
/// <summary>

src/GitHub.Exports.Reactive/Services/IPullRequestSession.cs

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Task PostReviewComment(
153153

154154
/// <summary>
155155
/// Refreshes the pull request session.
156+
/// </summary>
156157
/// <returns>A task which completes when the session has completed refreshing.</returns>
157158
Task Refresh();
158159
}

src/GitHub.Exports.Reactive/Services/IPullRequestSessionManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace GitHub.Services
1414
/// If the currently checked out branch represents a pull request then <see cref="CurrentSession"/>
1515
/// will return an <see cref="IPullRequestSession"/> containing the details of that pull request.
1616
/// A session for any other pull request can also be retrieved by calling
17-
/// <see cref="GetSession(IPullRequestModel)"/>.
17+
/// <see cref="GetSession(string, string, int)"/>.
1818
///
1919
/// Calling <see cref="GetLiveFile(string, ITextView, ITextBuffer)"/> will return an
2020
/// <see cref="IPullRequestSessionFile"/> which tracks both the contents of a text buffer and the

src/GitHub.Exports.Reactive/Services/IRepositoryCloneService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface IRepositoryCloneService
2323
/// <param name="repositoryPath">The directory that will contain the repository directory.</param>
2424
/// <param name="progress">
2525
/// An object through which to report progress. This must be of type
26-
/// <see cref="System.IProgress{Microsoft.VisualStudio.Shell.ServiceProgressData}"/>, but
26+
/// System.IProgress&lt;Microsoft.VisualStudio.Shell.ServiceProgressData&gt;, but
2727
/// as that type is only available in VS2017+ it is typed as <see cref="object"/> here.
2828
/// </param>
2929
/// <returns></returns>

src/GitHub.Exports.Reactive/Services/IShowDialogService.cs

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public interface IShowDialogService
3535
/// The value returned by the <paramref name="viewModel"/>'s
3636
/// <see cref="IDialogContentViewModel.Done"/> observable, or null if the dialog was
3737
/// canceled.
38+
/// </returns>
3839
/// <remarks>
3940
/// The first existing connection will be used. If there is no existing connection, the
4041
/// login dialog will be shown first.

src/GitHub.Exports/Factories/IViewViewModelFactory.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface IViewViewModelFactory
1313
/// <summary>
1414
/// Creates a view model based on the specified interface type.
1515
/// </summary>
16-
/// <typeparam name="T">The view model interface type.</typeparam>
16+
/// <typeparam name="TViewModel">The view model interface type.</typeparam>
1717
/// <returns>The view model.</returns>
1818
TViewModel CreateViewModel<TViewModel>() where TViewModel : IViewModel;
1919

src/GitHub.Exports/Models/ILocalRepositoryModel.cs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public interface ILocalRepositoryModel : IRepositoryModel, INotifyPropertyChange
2929
/// Generates a http(s) url to the repository in the remote server, optionally
3030
/// pointing to a specific file and specific line range in it.
3131
/// </summary>
32+
/// <param name="linkType">The type of repository link to create</param>
3233
/// <param name="path">The file to generate an url to. Optional.</param>
3334
/// <param name="startLine">A specific line, or (if specifying the <paramref name="endLine"/> as well) the start of a range</param>
3435
/// <param name="endLine">The end of a line range on the specified file.</param>

src/GitHub.Exports/Services/IGitHubContextService.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ public interface IGitHubContextService
3030
/// <summary>
3131
/// Convert a context to a repository URL.
3232
/// </summary>
33-
/// <param name="context">The context to convert.</param>
33+
/// <param name="windowTitle">A browser window title.</param>
3434
/// <returns>A repository URL</returns>
3535
GitHubContext FindContextFromWindowTitle(string windowTitle);
3636

3737
/// <summary>
3838
/// Find a context from a browser window title.
3939
/// </summary>
40-
/// <param name="windowTitle">A browser window title.</param>
40+
/// <param name="context"></param>
4141
/// <returns>The context or null if none can be found</returns>
4242
Uri ToRepositoryUrl(GitHubContext context);
4343

@@ -78,7 +78,7 @@ public interface IGitHubContextService
7878
/// Team Explorer creates temporary blob files in the following format:
7979
/// C:\Users\me\AppData\Local\Temp\TFSTemp\vctmp21996_181282.IOpenFromClipboardCommand.783ac965.cs
8080
/// The object-ish appears immediately before the file extension and the path contains the folder "TFSTemp".
81-
/// <remarks>
81+
/// </remarks>
8282
/// <param name="tempFile">The path to a possible Team Explorer temporary blob file.</param>
8383
/// <returns>The target file's object-ish (blob SHA fragment) or null if the path isn't recognized as a Team Explorer blob file.</returns>
8484
string FindObjectishForTFSTempFile(string tempFile);

src/GitHub.Exports/Services/IGitService.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public interface IGitService
1212
/// is null or no remote exists, this method returns null
1313
/// </summary>
1414
/// <param name="repository">The repository to look at for the remote.</param>
15+
/// <param name="remote">The remote name to look for</param>
1516
/// <returns>A <see cref="UriString"/> representing the origin or null if none found.</returns>
1617
UriString GetUri(IRepository repository, string remote = "origin");
1718

@@ -24,6 +25,7 @@ public interface IGitService
2425
/// walks up the parent directories until it either finds a repository, or reaches the root disk.
2526
/// </remarks>
2627
/// <param name="path">The path to start probing</param>
28+
/// <param name="remote">The remote name to look for</param>
2729
/// <returns>A <see cref="UriString"/> representing the origin or null if none found.</returns>
2830
UriString GetUri(string path, string remote = "origin");
2931

@@ -42,7 +44,8 @@ public interface IGitService
4244
/// <summary>
4345
/// Returns a <see cref="UriString"/> representing the uri of a remote.
4446
/// </summary>
45-
/// <param name="repo"></param>
47+
/// <param name="repo">The repository to look at for the remote.</param>
48+
/// <param name="remote">The remote name to look for</param>
4649
/// <returns></returns>
4750
UriString GetRemoteUri(IRepository repo, string remote = "origin");
4851

src/GitHub.Exports/Services/IVSGitServices.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ public interface IVSGitServices
1717
/// <param name="recurseSubmodules">Whether to recursively clone submodules.</param>
1818
/// <param name="progress">
1919
/// An object through which to report progress. This must be of type
20-
/// <see cref="System.IProgress{Microsoft.VisualStudio.Shell.ServiceProgressData}"/>, but
20+
/// System.IProgress&lt;Microsoft.VisualStudio.Shell.ServiceProgressData&gt;, but
2121
/// as that type is only available in VS2017+ it is typed as <see cref="object"/> here.
2222
/// </param>
23+
/// <seealso cref="System.IProgress{T}"/>
24+
/// <seealso cref="Microsoft.VisualStudio.Shell.ServiceProgressData"/>
2325
Task Clone(
2426
string cloneUrl,
2527
string clonePath,

src/GitHub.Exports/Services/IVSServices.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public interface IVSServices
1616
/// Our workaround is to create, open and delete a solution in the repo directory.
1717
/// This triggers an event that causes the target repo to open. ;)
1818
/// </remarks>
19-
/// <param name="repoPath">The path to the repository to open</param>
19+
/// <param name="directory">The path to the repository to open</param>
2020
/// <returns>True if a transient solution was successfully created in target directory (which should trigger opening of repository).</returns>
2121
bool TryOpenRepository(string directory);
2222

src/GitHub.InlineReviews/Commands/InlineCommentNavigationCommand.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ abstract class InlineCommentNavigationCommand : VsCommand<InlineCommentNavigatio
3434
/// <summary>
3535
/// Initializes a new instance of the <see cref="InlineCommentNavigationCommand"/> class.
3636
/// </summary>
37+
/// <param name="serviceProvider"></param>
3738
/// <param name="tagAggregatorFactory">The tag aggregator factory.</param>
3839
/// <param name="peekService">The peek service.</param>
3940
/// <param name="commandSet">The GUID of the group the command belongs to.</param>
@@ -74,7 +75,7 @@ protected int GetCursorPoint(ITextView textView, InlineCommentNavigationParams p
7475
/// <summary>
7576
/// Gets the text buffer position for the specified line.
7677
/// </summary>
77-
/// <param name="parameter">The parameters.</param>
78+
/// <param name="textView">The text view containing the buffer</param>
7879
/// <param name="lineNumber">The 0-based line number.</param>
7980
/// <returns></returns>
8081
protected int GetCursorPoint(ITextView textView, int lineNumber)
@@ -217,7 +218,10 @@ protected IReadOnlyList<ITagInfo> GetTags(IEnumerable<ITextView> textViews)
217218
/// <summary>
218219
/// Shows the inline comments for the specified tag in a peek view.
219220
/// </summary>
220-
/// <param name="tag"></param>
221+
/// <param name="textView">The text view containing the tag</param>
222+
/// <param name="tag">The inline comment tag</param>
223+
/// <param name="parameter">The navigation parameter detailing a search from the specified tag</param>
224+
/// <param name="allTextViews">The full list of text views</param>
221225
protected void ShowPeekComments(
222226
InlineCommentNavigationParams parameter,
223227
ITextView textView,

src/GitHub.InlineReviews/Models/InlineCommentThreadModel.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ class InlineCommentThreadModel : ReactiveObject, IInlineCommentThreadModel
2020
/// </summary>
2121
/// <param name="relativePath">The relative path to the file that the thread is on.</param>
2222
/// <param name="commitSha">The SHA of the commit that the thread appears on.</param>
23-
/// <param name="originalPosition">
24-
/// The 1-based line number in the original diff that the thread was left on.
25-
/// </param>
2623
/// <param name="diffMatch">
2724
/// The last five lines of the thread's diff hunk, in reverse order.
2825
/// </param>
26+
/// <param name="comments">The comments in the thread</param>
2927
public InlineCommentThreadModel(
3028
string relativePath,
3129
string commitSha,

src/GitHub.InlineReviews/Services/IDiffService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface IDiffService
2727
/// </summary>
2828
/// <param name="repo">The repository</param>
2929
/// <param name="baseSha">The base commit SHA.</param>
30-
/// <param name="headSha">The head commit SHA.</param
30+
/// <param name="headSha">The head commit SHA.</param>
3131
/// <param name="relativePath">The path to the file in the repository.</param>
3232
/// <param name="contents">The byte array to compare with the base SHA.</param>
3333
/// <returns>

src/GitHub.InlineReviews/Services/IInlineCommentPeekService.cs

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public interface IInlineCommentPeekService
1515
/// Gets the line number for a peek session tracking point.
1616
/// </summary>
1717
/// <param name="session">The peek session.</param>
18+
/// <param name="point">The peek session tracking point</param>
1819
/// <returns>
1920
/// A tuple containing the line number and whether the line number represents a line in the
2021
/// left hand side of a diff view.

src/GitHub.InlineReviews/Services/PullRequestSessionManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class PullRequestSessionManager : ReactiveObject, IPullRequestSessionMana
4242
/// </summary>
4343
/// <param name="service">The PR service to use.</param>
4444
/// <param name="sessionService">The PR session service to use.</param>
45-
/// <param name="teamExplorerService">The team explorer service to use.</param>
45+
/// <param name="teamExplorerContext">The team explorer context to use.</param>
4646
[ImportingConstructor]
4747
public PullRequestSessionManager(
4848
IPullRequestService service,

src/GitHub.InlineReviews/ViewModels/PullRequestReviewCommentViewModel.cs

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public PullRequestReviewCommentViewModel(
8888
/// <param name="commentService">Comment Service</param>
8989
/// <param name="thread">The thread that the comment is a part of.</param>
9090
/// <param name="currentUser">The current user.</param>
91+
/// <param name="review">The associated pull request review.</param>
9192
/// <param name="model">The comment model.</param>
9293
public PullRequestReviewCommentViewModel(
9394
IPullRequestSession session,

src/GitHub.Services.Vssdk/Commands/MenuCommandServiceExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static class MenuCommandServiceExtensions
1616
/// Adds <see cref="IVsCommand"/>s or <see cref="IVsCommand{TParam}"/>s to a menu.
1717
/// </summary>
1818
/// <param name="service">The menu command service.</param>
19-
/// <param name="command">The commands to add.</param>
19+
/// <param name="commands">The commands to add.</param>
2020
public static void AddCommands(
2121
this IMenuCommandService service,
2222
params IVsCommandBase[] commands)

0 commit comments

Comments
 (0)