Skip to content

Commit

Permalink
win: discourage IntelliCode disabling #267, #286
Browse files Browse the repository at this point in the history
This commit fixes issues #267 and #286 where users reported that
disabling IntelliCode data collection causes Visual Studio 2022 to hang
or become unresponsive.

The script has been updated to remove its recommendation status and
include a warning about these issues. As Microsoft did not respond to
inconsistencies with the official documentation in
MicrosoftDocs/intellicode#510, this commit prevents further disruptions
for privacy.sexy users.
  • Loading branch information
undergroundwires committed Nov 22, 2023
1 parent dee3279 commit 90abe26
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions src/application/collections/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3429,19 +3429,25 @@ actions:
reg add "HKLM\Software\Microsoft\VisualStudio\DiagnosticsHub" /v "LogLevel" /t REG_SZ /d "All" /f
)
-
name: Disable participation in IntelliCode data collection
recommend: standard
name: Disable participation in IntelliCode data collection (breaks Visual Studio 2022)
# recommend: standard (This script has been reported to cause issues with Visual Studio 2022, potentially leading to hangs or unresponsiveness)
docs: |-
[IntelliCode for Visual Studio](https://learn.microsoft.com/en-us/visualstudio/intellicode/intellicode-visual-studio) provides AI based
suggestions for the code.

IntelliCode does not send any code to Microsoft servers as long as team completion model training is not used [1] [2]. This script opts-out
from it without breaking the functionality of IntelliCode for local models.

The registry keys set by this script do not exist by default after installation since Visual Studio 2022.

[1]: https://docs.microsoft.com/en-us/visualstudio/intellicode/intellicode-privacy "IntelliCode privacy - Visual Studio IntelliCode | Microsoft Learn"
[2]: https://github.com/MicrosoftDocs/intellicode/blob/50ea60c91a7175e749ed5e094403568a583a292e/docs/intellicode-privacy.md
This script opts out of IntelliCode data collection for Visual Studio, a feature that provides AI-based code suggestions [1].
IntelliCode, by default, does not transmit code to Microsoft servers unless team completion model training is used [2] [3].
However, this script targets the settings related to data collection to further enhance privacy.

The script modifies registry keys that do not exist by default in Visual Studio 2022. It disables remote analysis,
ensuring IntelliCode uses only local models for code suggestions.

> **Caution:** Users have reported that enabling this script may cause Visual Studio 2022 to hang or become unresponsive [4] [2].
> Despite the official documentation from Microsoft [4], due to these community reports, it's advised to consider the potential
> impact on Visual Studio's functionality before implementing this script.

[1]: https://web.archive.org/web/20231112024816/https://learn.microsoft.com/en-us/visualstudio/ide/intellicode-visual-studio?view=vs-2022 "IntelliCode for Visual Studio | Microsoft Learn | learn.microsoft.com"
[2]: https://web.archive.org/web/20231112024456/https://learn.microsoft.com/en-us/visualstudio/ide/intellicode-privacy?view=vs-2022 "IntelliCode privacy - Visual Studio IntelliCode | Microsoft Learn | docs.microsoft.com"
[3]: https://web.archive.org/web/20231112024639/https://raw.githubusercontent.com/MicrosoftDocs/intellicode/50ea60c91a7175e749ed5e094403568a583a292e/docs/intellicode-privacy.md "intellicode/docs/intellicode-privacy.md at 50ea60c91a7175e749ed5e094403568a583a292e · MicrosoftDocs/intellicode | github.com/MicrosoftDocs"
[4]: https://github.com/undergroundwires/privacy.sexy/issues/267 "[BUG]: Visual Studio 2022 hangs with `Opt-out from IntelliCode data collection` · Issue #267 · undergroundwires/privacy.sexy | github.com/undergroundwires"
[5]: https://github.com/undergroundwires/privacy.sexy/issues/286 "[BUG]: Disabling IntelliCode data collection crashes VS · Issue #286 · undergroundwires/privacy.sexy | github.com/undergroundwires"
code: |-
:: Global policy
reg add "HKLM\SOFTWARE\Policies\Microsoft\VisualStudio\IntelliCode" /v "DisableRemoteAnalysis" /d 1 /f
Expand Down

0 comments on commit 90abe26

Please sign in to comment.