Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 18, 2024 23:53
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 18, 2024
var formatted = Formatter.Format(root, document.Project.Solution.Services, formattingOptions, CancellationToken.None);

var textBuffer = _textBufferCloneService.Clone(formatted.GetTextSynchronously(CancellationToken.None), _contentType);
var textBuffer = _textBufferCloneService.Clone(SourceText.From(formatted.ToFullString(), Encoding.UTF8), _contentType);
Copy link
Member

Choose a reason for hiding this comment

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

Is UTF8 always correct here and is it even necessary to specify?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's what we were already doing about 5 lines above. So it seems fine. These are never actually persisted to disk. They're just shown in the tools options ui

@CyrusNajmabadi CyrusNajmabadi merged commit aef1c39 into dotnet:main Dec 19, 2024
25 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the asyncOptions branch December 19, 2024 07:21
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 19, 2024
@dibarbet dibarbet modified the milestones: Next, 17.13 P3 Jan 7, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants