You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a code change and verify the message "Code changes were successfully applied."
Switch back to the browser.
Observe that the browser is not automatically refreshed to reflect the changes.
Manually reload the page to see the applied changes.
Description of the problem:
I tired the new experimental hot reload feature in C# Dev Kit. After making a code change and seeing the message "Code changes were successfully applied," the browser does not automatically refresh. The changes are only visible after manually reloading the page.
Expected behavior:
The browser should automatically refresh to display the latest changes made in the code.
Actual behavior:
The browser does not refresh automatically after code changes. The updated content is only visible after manually reloading the page.
Logs
OmniSharp
------------------- Please fill in this section -------------------------
To find the OmniSharp log, open VS Code's "Output" pane, then in the dropdown choose "OmniSharp Log".
Razor
Expand
-- Starting Issue Data Collection--
provideCodeLens failed with Error: Illegal argument
provideCodeLens failed with Error: Illegal argument
72 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 16, synchronizing to version '16'.'
72 - Projected document in sync with host document
72 - Projected text document in sync with data type
72 - Synchronization successful!
73 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 16, synchronizing to version '16'.'
73 - Projected document in sync with host document
73 - Projected text document in sync with data type
73 - Synchronization successful!
74 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 16, synchronizing to version '16'.'
74 - Projected document in sync with host document
74 - Projected text document in sync with data type
74 - Synchronization successful!
75 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 16, synchronizing to version '16'.'
75 - Projected document in sync with host document
75 - Projected text document in sync with data type
75 - Synchronization successful!
76 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 16, synchronizing to version '16'.'
76 - Projected document in sync with host document
76 - Projected text document in sync with data type
76 - Synchronization successful!
77 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 16, synchronizing to version '16'.'
77 - Projected document in sync with host document
77 - Projected text document in sync with data type
77 - Synchronization successful!
78 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 16, synchronizing to version '16'.'
78 - Projected document in sync with host document
78 - Projected text document in sync with data type
78 - Synchronization successful!
79 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 16, synchronizing to version '16'.'
79 - Projected document in sync with host document
79 - Projected text document in sync with data type
79 - Synchronization successful!
80 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.html':
Currently at 16, synchronizing to version '16'.'
80 - Projected document in sync with host document
80 - Projected text document in sync with data type
80 - Synchronization successful!
81 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.html':
Currently at 16, synchronizing to version '16'.'
81 - Projected document in sync with host document
81 - Projected text document in sync with data type
81 - Synchronization successful!
Updating the HTML document for Razor file 'd:/Projects/Experimental/BlazorSSR/Components/Layout/MainLayout.razor' (17)
Notifying document 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor' changed 'htmlChanged'
Updating the C# document for Razor file 'd:/Projects/Experimental/BlazorSSR/Components/Layout/MainLayout.razor' (17)
Notifying document 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor' changed 'csharpChanged'
82 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 17, synchronizing to version '17'.'
82 - Projected document in sync with host document
82 - Projected text document not in sync with data type, waiting for update...
Current projected text document sync version: 16
82 - Projected text document synchronized to 17.
82 - Projected text document in sync with data type
82 - Synchronization successful!
83 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 17, synchronizing to version '17'.'
83 - Projected document in sync with host document
83 - Projected text document in sync with data type
83 - Synchronization successful!
Updating the HTML document for Razor file 'd:/Projects/Experimental/BlazorSSR/Components/Layout/MainLayout.razor' (18)
Notifying document 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor' changed 'htmlChanged'
Updating the C# document for Razor file 'd:/Projects/Experimental/BlazorSSR/Components/Layout/MainLayout.razor' (18)
Notifying document 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor' changed 'csharpChanged'
84 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 18, synchronizing to version '18'.'
84 - Projected document in sync with host document
84 - Projected text document in sync with data type
84 - Synchronization successful!
85 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 18, synchronizing to version '18'.'
85 - Projected document in sync with host document
85 - Projected text document in sync with data type
85 - Synchronization successful!
86 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.cs':
Currently at 18, synchronizing to version '18'.'
86 - Projected document in sync with host document
86 - Projected text document in sync with data type
86 - Synchronization successful!
87 - Synchronizing 'd:\Projects\Experimental\BlazorSSR\Components\Layout\MainLayout.razor__virtual.html':
Currently at 18, synchronizing to version '18'.'
87 - Projected document in sync with host document
87 - Projected text document in sync with data type
87 - Synchronization successful!
-- Stopping Issue Data Collection--
////////////////////// Projected Html as seen by extension ///////////////////////
/*~~~~~*/ /*~~~~~~~~~~~~~~~*/
<divclass="page"><divclass="sidebar"><NavMenu/></div><main><divclass="top-row px-4"><ahref="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a></div><articleclass="content px-4">
/*~*/
</article></main></div><divid="blazor-error-ui" data-nosnippet>
An unhandled error has occurred.
<ahref="." class="reload">Reload</a><spanclass="dismiss">🗙</span></div>
////////////////////// Projected Html as seen by extension ///////////////////////
/*~~~~~*/ /*~~~~~~~~~~~~~~~*/
<divclass="page"><divclass="sidebar"><NavMenu/></div><main><divclass="top-row px-4"><ahref="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a></div><articleclass="content px-4">
/*~*/
</article></main></div><divid="blazor-error-ui" data-nosnippet>
An unhandled error has occurred.
<ahref="." class="reload">Reload</a><spanclass="dismiss">🗙</span></div>
// 18
Is this a Bug or Feature request?:
Bug
Steps to reproduce:
dotnet new blazor
Description of the problem:
I tired the new experimental hot reload feature in C# Dev Kit. After making a code change and seeing the message "Code changes were successfully applied," the browser does not automatically refresh. The changes are only visible after manually reloading the page.
Expected behavior:
The browser should automatically refresh to display the latest changes made in the code.
Actual behavior:
The browser does not refresh automatically after code changes. The updated content is only visible after manually reloading the page.
Logs
OmniSharp
------------------- Please fill in this section -------------------------
To find the OmniSharp log, open VS Code's "Output" pane, then in the dropdown choose "OmniSharp Log".
Razor
Expand
Workspace information
Razor document:
Expand
Projected CSharp document:
Expand
Projected Html document:
Expand
Machine information
VSCode version: 1.97.2
Razor.VSCode version: 2.63.32
dotnet --info
Expand
Extensions
Expand
The text was updated successfully, but these errors were encountered: