Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide true-async and true-sync versions of GetTextChanges #76498

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

CyrusNajmabadi
Copy link
Member

Pointed out by jason in: #76491

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 18, 2024 19:46
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 18, 2024
@CyrusNajmabadi
Copy link
Member Author

@jasonmalinowski ptal.

{
// Should always complete synchronously since we passed in 'useAsync: false'
var result = GetTextChangesAsync(useAsync: false, oldDocument, cancellationToken);
return result.VerifyCompleted();
Copy link
Member

Choose a reason for hiding this comment

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

Neat! I did not know about this.

@CyrusNajmabadi CyrusNajmabadi merged commit 6e512bf into dotnet:main Dec 18, 2024
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 18, 2024
@CyrusNajmabadi CyrusNajmabadi deleted the asyncAndSync branch December 18, 2024 21:14
@jasonmalinowski
Copy link
Member

@CyrusNajmabadi Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants