Update src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Formatting/CSharpOnTypeFormattingPass.cs

Co-authored-by: Allison Chou <allichou@microsoft.com>
This commit is contained in:
David Wengier 2022-08-31 16:23:27 +10:00 коммит произвёл GitHub
Родитель 90be5c618f
Коммит 6828bb09c9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -95,7 +95,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.Formatting
_logger.LogInformation("Received {textEditsLength} results from C#.", textEdits.Length);
}
// Sometimes teh C# document is out of sync with our document, so Roslyn can return edits to us that will throw when we try
// Sometimes the C# document is out of sync with our document, so Roslyn can return edits to us that will throw when we try
// to normalize them. Instead of having this flow up and log a NFW, we just capture it here. Since this only happens when typing
// very quickly, it is a safe assumption that we'll get another chance to do on type formatting, since we know the user is typing.
// The proper fix for this is https://github.com/dotnet/razor-tooling/issues/6650 at which point this can be removed