Skip RoslynCopilot install when ai features not enabled#9196
Merged
Conversation
JoeRobich
reviewed
Apr 15, 2026
JoeRobich
approved these changes
Apr 15, 2026
4603807 to
2f1bf30
Compare
akhera99
approved these changes
Apr 15, 2026
Contributor
|
@dibarbet I think we may need to update logic for this, you can disable AI features with chat.disableAIFeatures setting now |
Only install and load the RoslynCopilot component when a GitHub Copilot extension (github.copilot or github.copilot-chat) is detected, in addition to the existing C# Dev Kit requirement. When the user installs a Copilot extension after startup while Dev Kit is active, detect the change and prompt for an extension host reload to enable Copilot integration. Fixes microsoft/vscode-dotnettools#2979 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add disableAIFeatures as a CommonOption backed by chat.disableAIFeatures. Gate the Roslyn Copilot component download and server loading on this setting. The existing option change infrastructure handles prompting for a window reload when the setting changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2f1bf30 to
795c626
Compare
Member
Author
|
@JoeRobich / @akhera99 for re-review (using the setting instead of extension presence) |
akhera99
approved these changes
May 5, 2026
JoeRobich
approved these changes
May 5, 2026
Member
JoeRobich
left a comment
There was a problem hiding this comment.
Was looking to see if you added it to the restart options and you did. Looks good
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Only install and load the RoslynCopilot component when ai features are enabled. Prompts for reload when the setting changes.
Issue: microsoft/vscode-dotnettools#2979