Skip to content

Remove cohost feature flag, and hardcode to true#12669

Merged
davidwengier merged 3 commits intodotnet:mainfrom
davidwengier:HardcodeCohosting
Jan 14, 2026
Merged

Remove cohost feature flag, and hardcode to true#12669
davidwengier merged 3 commits intodotnet:mainfrom
davidwengier:HardcodeCohosting

Conversation

@davidwengier
Copy link
Member

Fixes #12656

This leaves most of the code in place, otherwise it's a very viral process that results in deleting the entire old LSP server, and we aren't planning on doing that until 18.5. BUT I did decide to disconnect a few choice MEF services that no-op with cohosting, so we might get some improvements in DDRIT/Speedometer as well.

@davidwengier davidwengier requested a review from a team as a code owner January 12, 2026 03:44
@davidwengier
Copy link
Member Author

Test insertion, just for fun: https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/699512

return true;
}

public CapabilityCheckResult IsDotNetCoreProject(string documentFilePath)
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to this PR, but it seems that if we wanted to 'fix' the weird '.NET Framework but with SDK style projects' we could define a capability that they could put in their projects that we could detect and fallback to .NET Framework editor.

//cc @dbreshears

Copy link
Member Author

Choose a reason for hiding this comment

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

In theory, yes, and thats why #12332 is still open, and I fully support doing that work if we get enough user feedback about it. In practice I tried this and it needs more than just changes in our repo though. That might be 5 minutes of work in the Web Tools repo, but equally it could mean that the .NET Framework editor has some code that relies on/expects the native csproj project system, and won't ever work with CPS.

@davidwengier
Copy link
Member Author

Test insertion failed, looks like there are still tests that turn off cohosting. Note to self: Don't merge this yet!

@davidwengier
Copy link
Member Author

davidwengier commented Jan 14, 2026

@davidwengier davidwengier merged commit 1569984 into dotnet:main Jan 14, 2026
10 checks passed
@davidwengier davidwengier deleted the HardcodeCohosting branch January 14, 2026 10:55
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jan 14, 2026
@davidwengier davidwengier modified the milestones: Next, 18.4 Jan 27, 2026
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.

Remove the feature flag from our pkgdef, and legacy editor check

2 participants