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.
This commit is contained in:
@@ -3429,19 +3429,27 @@ 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.
|
||||
This script disables data collection by IntelliCode in Visual Studio, a feature that offers AI-based code suggestions [1].
|
||||
IntelliCode captures anonymized usage and error-reporting data to improve the product [1].
|
||||
It generally does not send user-defined code to Microsoft, except when using team completion model training [2] [3] [4].
|
||||
This script opts out of such data collection without affecting IntelliCode's functionality based on local models [3] [4].
|
||||
|
||||
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.
|
||||
By modifying specific registry keys, this script deactivates the remote analysis feature of IntelliCode [3]. These keys
|
||||
are not present by default in Visual Studio 2022 installations. This action ensures that IntelliCode relies solely on
|
||||
local models, enhancing user privacy by limiting data sent to Microsoft.
|
||||
|
||||
The registry keys set by this script do not exist by default after installation since Visual Studio 2022.
|
||||
> **Caution:** Users have reported that enabling this script may cause Visual Studio 2022 to hang or become unresponsive [5] [6].
|
||||
> Despite its official documentation [4], due to these user experiences, careful consideration is recommended before applying this script.
|
||||
|
||||
[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
|
||||
[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://web.archive.org/web/20231122105835/https://raw.githubusercontent.com/microsoft/vscode-docs/main/docs/csharp/intellicode.md "vscode-docs/docs/csharp/intellicode.md at main · microsoft/vscode-docs | github.com/microsoft/vscode-docs"
|
||||
[5]: 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"
|
||||
[6]: 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
|
||||
|
||||
Reference in New Issue
Block a user