Skip to content

Conversation

@HolisticDeveloper
Copy link

@HolisticDeveloper HolisticDeveloper commented Nov 12, 2025

Pull Request Template

Description

closes #5485.

Changes the phrase

If the these invalid regions are added later to the account

to

If these invalid regions are added later to the account

Note: I edited the file using the GitHub web-based editor. There was a warning about inconsistent line endings, so it reformatted the file with CRLF (which I see is specified in .editorconfig.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

@HolisticDeveloper
Copy link
Author

@microsoft-github-policy-service agree

Copy link
Member

@Pilchie Pilchie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

It looks like you made a bunch of whitespace changes (maybe changed line-endings?), as well as adding an extra newline on line 1263.

Can you take a look and re-submit without the extra changes.

@HolisticDeveloper
Copy link
Author

@Pilchie I noted the line endings in the description:

Note: I edited the file using the GitHub web-based editor. There was a warning about inconsistent line endings, so it reformatted the file with CRLF (which I see is specified in .editorconfig).

Is CRLF not desired?

@Pilchie
Copy link
Member

Pilchie commented Nov 12, 2025

Sorry - going to quickly :( @kirankumarkolli - thoughts?

@Pilchie Pilchie dismissed their stale review November 12, 2025 19:46

Missed comment that file already had inconsistent line-endings.

Copy link
Member

@kirankumarkolli kirankumarkolli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please fix the tabs/spaces and ensure that only change?

/// <summary>
/// Creates a new CosmosClientOptions
/// </summary>
public CosmosClientOptions()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot please fix the PR to not update newline endings

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a grammatical error in the XML documentation for the ApplicationPreferredRegions property by removing a duplicate article "the" from the phrase "If the these invalid regions" to "If these invalid regions". The file was also reformatted with consistent CRLF line endings as specified in .editorconfig.

  • Corrected typo in documentation comment for ApplicationPreferredRegions
  • Reformatted file with CRLF line endings per .editorconfig specification

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +109 to +110
HttpRequestMessage dummyMessage = new HttpRequestMessage();
dummyMessage.Headers.Add(HttpConstants.HttpHeaders.UserAgent, value);
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disposable 'HttpRequestMessage' is created but not disposed.

Suggested change
HttpRequestMessage dummyMessage = new HttpRequestMessage();
dummyMessage.Headers.Add(HttpConstants.HttpHeaders.UserAgent, value);
using (HttpRequestMessage dummyMessage = new HttpRequestMessage())
{
dummyMessage.Headers.Add(HttpConstants.HttpHeaders.UserAgent, value);
}

Copilot uses AI. Check for mistakes.
Comment on lines +1306 to +1307
CosmosJsonSerializerWrapper cosmosJsonSerializerWrapper = value as CosmosJsonSerializerWrapper;
if (value is CosmosJsonSerializerWrapper)
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable cosmosJsonSerializerWrapper may be null at this access because of this assignment.

Suggested change
CosmosJsonSerializerWrapper cosmosJsonSerializerWrapper = value as CosmosJsonSerializerWrapper;
if (value is CosmosJsonSerializerWrapper)
if (value is CosmosJsonSerializerWrapper cosmosJsonSerializerWrapper)

Copilot uses AI. Check for mistakes.
Comment on lines +842 to +858
if (this.DisableServerCertificateValidationInvocationCallback == null)
{
return this.ServerCertificateCustomValidationCallback ?? ((_, _, _) => true);
}
else
{
return (X509Certificate2 cert, X509Chain chain, SslPolicyErrors policyErrors) =>
{
bool bValidationResult = true;
if (this.ServerCertificateCustomValidationCallback != null)
{
bValidationResult = this.ServerCertificateCustomValidationCallback(cert, chain, policyErrors);
}
this.DisableServerCertificateValidationInvocationCallback?.Invoke();
return bValidationResult;
};
}
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both branches of this 'if' statement return - consider using '?' to express intent better.

Copilot uses AI. Check for mistakes.
@kirankumarkolli
Copy link
Member

@Pilchie I noted the line endings in the description:

Note: I edited the file using the GitHub web-based editor. There was a warning about inconsistent line endings, so it reformatted the file with CRLF (which I see is specified in .editorconfig).

Is CRLF not desired?

It changes the full file and impacts Blame graph for tracking changes.
Can we please limit this change to the minimal required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typo in docs for ApplicationPreferredRegions

3 participants