I just installed the vs code windows zip version with vim extension on Win7. For privacy I disabled these options in the settings.json file:
{
"update.channel": "none",
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false
}
but vscode is still connecting to different MS internet sites at startup:
- 191.238.172.191 Microsoft Informatica Ltda (br)
- 40.114.241.141 Microsoft Corporation (MSFT)
- 40.77.226.250 Microsoft Corporation (MSFT)
How can I disable vscode connecting to sites in the background I don' t want to connect to?
Check also the version of Git you are using with VSCode.
Starting Git 2.19 (Q3 2019), possible telemetry can be sent from IDE/products using Git.
See commit 7545941 (13 Jul 2018) by Jeff Hostetler (
jeffhostetler
).Helped-by: Eric Sunshine (
sunshineco
), René Scharfe (rscharfe
), Wink Saville (winksaville
), and Ramsay Jones (jeffhostetler
).(Merged by Junio C Hamano --
gitster
-- in commit a14a9bf, 15 Aug 2018)Junio C Hamano, official maintainer for Git, added in this thread:
Ævar Arnfjörð Bjarmason added here:
So, in addition of
Microsoft/vscode
issue 16131, we will have to monitor how VSCode uses Git in the future, since Git will offer a telemetry framework, for editors to use if they choose to.With Git 2.25 (Q1 2020), We have had compatibility fallback macro definitions for "
PRIuMAX
", "PRIu32
", etc.But we did not for "
PRIdMAX
", while the code used the last one apparently without any hiccup reported recently.See commit ebc3278 (24 Nov 2019) by Hariom Verma (
harry-hov
).(Merged by Junio C Hamano --
gitster
-- in commit e547e5a, 05 Dec 2019)I ran the program with Wireshark on linux and I can confirm the background connections.
The first address is for marketplace.visualstudio.com, so it's probably used for extension update checks or similar? If you use extensions you might want to leave it as it is.
The last addresses are most likely related to telemetry. Visual Studio Code makes several DNS lookups even though the telemetry and updates are "disabled". You can try to add some of those DNS names to your hosts file in order to prevent the connections, but keep in mind that doing so might have side effects on your system functionality as Windows uses them for other (telemetry and such) purposes. Here are a few of the DNS lookups I was able to trigger with a small testing, there are likely many more:
I share your concerns. Having 20 years of experience with Microsoft I'm very frustrated and scared of using any of their products. The license for Visual Studio Code does not fill me up with confidence either. I'm not really surprised that "opting out" of telemetry does not even actually disable it.
I do like Visual Studio Code more than Atom and instead of downloading it from Microsoft, I cloned the original vscode repository (which is MIT licensed base product for the Visual Studio Code) and installed it instead. It doesn't seem to connect to Internet immediately when I start typing. Unfortunately, I haven't figured out how I can easily update and install extensions to vscode, so I might have to return to Atom eventually. I wish someone with more interest and time on their hands would fork a telemetry free vscode with marketplace functionality and share the binaries for the rest of us.
Update:
I raised an issue (#16131) about this. Looking at the total amount of open issues (~3000) on vscode I don't expect it to be solved anytime soon. For the time being you should block at least vortex.data.microsoft.com and dc.services.visualstudio.com in your hosts file. Blocking those two won't affect the usage of marketplace or any other necessary functionality. Blocking them seems to cease most Internet traffic for Visual Studio Code 1.7.2 (which might change in future versions).
What also worries me is that even though the data sent to vortex is encrypted, Visual Studio Code actually sends details about your machine and OS unencrypted plain text (via HTTP POST) to dc.services.visualstudio.com. (Note that I didn't yet file an issue about that).
Update 2:
According to the official reply I got for the issue #16131, Visual Studio Code was sending the information to Microsoft that the user had opted out from telemetry. A bit odd choice to send telemetry about the user not wanting any telemetry, but they said that they will stop doing it in the future. I appreciate their honesty with this matter.