Skip to content

Conversation

phil-allen-msft
Copy link
Member

Update Razor cohosting to be 'on' by default.

Tested locally with a multi-project Blazor solution.

Copy link
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

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

Forgot one thing - can you also add a line in the changelog for this? Likely want to mention how people can turn it off if they have issues etc...

I also see the normal (previously non-cohosting) Razor tests are all failing - possibly they need to explicitly turn cohosting off now in the test config - https://github.com/dotnet/vscode-csharp/blob/main/test/razor/razorIntegrationTests/testAssets/RazorApp/.vscode/devkit_RazorApp.code-workspace

@davidwengier
Copy link
Member

possibly they need to explicitly turn cohosting off now in the test config

Thats a very good point I should have thought of.

However, the fact that they're failing is surprising, as it implies that cohosting+devkit is having issues.

@davidwengier
Copy link
Member

davidwengier commented Jul 30, 2025

Ran this branch up locally and manually verified, and everything works fine. Startup is pretty slow with devkit, so suspect that is what is going on. I think the failing tests are the only ones that don't retry. Also one of them is badly named :)

Have pushed up the settings change suggested, since it makes sense anyway.

@JoeRobich
Copy link
Member

Maybe we should be using https://jestjs.io/docs/jest-object#jestretrytimesnumretries-options

@phil-allen-msft
Copy link
Member Author

Changelog updated.

@phil-allen-msft phil-allen-msft requested a review from dibarbet July 30, 2025 17:15
@phil-allen-msft phil-allen-msft merged commit 086efb7 into main Jul 30, 2025
32 checks passed
@phil-allen-msft phil-allen-msft deleted the dev/phil-allen-msft/cohostOn branch July 30, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants