-
Notifications
You must be signed in to change notification settings - Fork 199
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
Publish generated HTML in the client #1633
Conversation
0752010
to
ab0705f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Holy cow, this is incredible! 👏
One thing we should do in addition to what you have here is add an HTML completion functional test that excercises one of the broken cases of the past.
i.e.
@{
if (1 < 2) { }
}
<|
If I recall correctly completion at the | doesn't work in the currently released bits because the HTML document sees the 1 < 2
and is expecting a start/end tag. Could also use a C# comment that mentions an HTML comment start to replicate the issue too.
src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorCodeDocumentExtensions.cs
Show resolved
Hide resolved
...azor/src/Microsoft.AspNetCore.Razor.LanguageServer/DefaultGeneratedDocumentContainerStore.cs
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/DefaultGeneratedDocumentPublisher.cs
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/DefaultGeneratedDocumentPublisher.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/DefaultGeneratedDocumentPublisher.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode/src/Html/HtmlProjectedDocument.ts
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode/src/RazorDocumentManager.ts
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.VSCode/src/RazorDocumentManager.ts
Show resolved
Hide resolved
src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/DocumentState.cs
Show resolved
Hide resolved
...st/Microsoft.CodeAnalysis.Razor.Workspaces.Test/ProjectSystem/DefaultDocumentSnapshotTest.cs
Show resolved
Hide resolved
🆙 📅 |
* Publish generated HTML in the client * feedback * fix \n\nCommit migrated from dotnet/razor@a666c6f
* Publish generated HTML in the client * feedback * fix \n\nCommit migrated from dotnet/razor@a666c6f Commit migrated from dotnet/aspnetcore@d41276b0fae6
Fixes dotnet/aspnetcore#14286
updateHtmlBuffer
command to update the buffer on the clientRazorDocumentManager
andHtmlDocument
on the client side to follow the same behavior of CSharp for updating the virtual background documentUnsyncronizedDocumentProcessedListener
where we were updating the background C# document with all razor content