dwyl / dev-setup

โœˆ๏ธ A quick-start guide for new engineers on how to set up their Dev environment
77 stars 21 forks source link

VSCodium is VSCode without "Telemetry" (Tracking!) #37

Open nelsonic opened 4 years ago

nelsonic commented 4 years ago

"Microsoftโ€™s vscode source code is open source (MIT-licensed), but the product available for download (Visual Studio Code) is licensed under this not-FLOSS license and contains telemetry/tracking."

https://vscodium.com image

Either grab the latest release from: https://github.com/VSCodium/vscodium/releases

Or follow the download/install instructions on the website. e.g: on Mac:

brew cask install vscodium

Output

==> Verifying SHA-256 checksum for Cask 'vscodium'.
==> Installing Cask vscodium
==> Moving App 'VSCodium.app' to '/Applications/VSCodium.app'.
==> Linking Binary 'code' to '/usr/local/bin/code'.
๐Ÿบ  vscodium was successfully installed!

If you see the following warning: image

Open the Security & Privacy tab in your System Preferences and click "Open Anyway": security-privacy-settings-open-anyway

The next time you open the app you will see: image

Click on "Open" to continue opening VSCodium

You will see: image

VSCodium is compatible with all the plugins/extensions that you know and love in VSCode. Just install and VSCodium and pickup exactly where you left off.

using the code shortcut in your terminal will open VSCodium e.g:

code .

No more tracking from Microsoft. ๐ŸŽ‰

nelsonic commented 4 years ago

One thing that I've found annoying about Vscodium is for some reason the Elixir Language Support (syntax highlighting and formatting) is not available when searched for in the extensions search: image

It means my Elixir code looks like this lame grey:

vscodium-no-elixir-syntax-higlighting

It appears that VSCodium has a separate extensions library so it does not display the default ones. More detail + instructions available in: https://github.com/VSCodium/vscodium/blob/master/DOCS.md#extensions-marketplace

image

"Modify the extensionsGallery section of the product.json file" ...

I searched for "product.json vscodium": image

The results were useless so I kept refining (adding detail) to my query: "where is product.json in vscodium" and obviously the results were still useless. image

So I went digging in finder on my Mac ... ๐Ÿ“ ๐Ÿ” But I did not find a product.json file ... ๐Ÿ˜ž Apparently the brew version is a compiled binary so there is no product.json file ... See: https://stackoverflow.com/questions/44057402/using-extensions-in-compiled-vscode

What I did find were the extensions for both .vscode (the Microsoft one that tracks your keystrokes!) and .vscode_oss (VSCodium) image

To get back to this, simply open your terminal and type:

cd ~/

That will take you to the "home" directory of your "user" on the OS. If you ls (list the contents of the directory), you will see both .vscode and .vscode-oss (VSCodium):

iterm-home-showing-vscode-vscod-oss

I simply copied over the extensions from ~/.vscode/extensions to ~/.vscode_oss/extensions

cp -R ~/.vscode/extensions/* ~/.vscode_oss/extensions

and that gave me Elixir Syntax highlighting: ๐ŸŽ‰ vscodium-sintax-higlighting

This is obviously not a good longterm solution and it won't work for people who haven't previously used VSCode. So we still need a more robust solution. ๐Ÿ’ญ I'm going to get back to my code for now, but if I ever need to install just VSCodium on a new computer, I will investigate this further. ๐Ÿ‘

nelsonic commented 4 years ago

Found it! Open your terminal/iTerm and go to:

cd /Applications/VSCodium.app/Contents/Resources/app
ls -lath
found-product-json-vscodium

Edit the file using VSCodium:

code product.json

If you search for "extensionsGallery" you should see:

vscodium-default-extensionsGallery

Replace:

  "extensionsGallery": {
    "serviceUrl": "https://open-vsx.org/vscode/gallery",
    "itemUrl": "https://open-vsx.org/vscode/item"
  },

With:

"extensionsGallery": {
    "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
    "itemUrl": "https://marketplace.visualstudio.com/items"
},

So you now have this:

vscodium-updated-extensionsGallery

After restarting VSCodium, if we open the Extensions Marketplace: vscodium-open-extensions-marketplace

If you search for your favourite extension or programming language, you will see all of them: vscodium-full-extention-marketplace

nelsonic commented 3 years ago

Attempting to launch/run VSCodium from terminal with code or codium but get:

zsh: command not found: code

or

zsh: command not found: codium

according to https://github.com/VSCodium/vscodium/issues/190#issuecomment-500707708 open the Command Palette: โ‡งโŒ˜P (Shift Apple P)

image

Type: "install cod" and press the Enter key to activate the command: image

Now in your terminal, you can type codium . to start the VSCodium program with the CWD as the project.

nelsonic commented 2 years ago

Just tried setting up on a new mac and got the following error:

/usr/local/bin/code: line 6: python: command not found
/usr/local/bin/code: line 10: ./MacOS/Electron: No such file or directory

Going to do a bit of Googling ... ๐Ÿ”

nelsonic commented 2 years ago

Known issue: https://github.com/microsoft/vscode/issues/141738 Hot fix solution: https://github.com/microsoft/vscode/issues/141738#issuecomment-1029507799

vi /usr/local/bin/code

change python => python3 on the following line

- function realpath() { python -c ...
+ function realpath() { python3 -c ...

using python3 works. โœ…

nelsonic commented 2 years ago

The last comment in the thread is actually a more elegant solution: https://github.com/microsoft/vscode/issues/141738#issuecomment-1070966278

I had python3 installed through brew so I simply ran: ln -s /opt/homebrew/bin/python3 /opt/homebrew/bin/python

iteles commented 4 months ago

@nelsonic This issue has been so helpful, thank you!

I got the same but without the Open option (when installing with homebrew on mac brew install --cask vscodium):

image

So you have to go to System Preferences and you should see the blocked app:

Screenshot 2024-05-05 at 12 26 53

Clicking on Open Anyway gets you this pop-up:

Screenshot 2024-05-05 at 12 28 15

And here you can click on Open and get access to VSCodium ๐Ÿ‘Œ

nelsonic commented 4 months ago

Glad you were able to get it working. ๐Ÿ‘ฉโ€๐Ÿ’ปโญ๏ธ

squew commented 1 week ago

Just FYI it has nothing to do with telemetry... Moreover theit might be telemetry in all os iOS, Macos, even Ubuntu or any OS, and in most apps, and it's not new... But elsewhere where paranoid people never find them, even if it written black on white.. Or depending on the theme... It's hilarious. Pfff.you may not what is telemetry and if you're worked about you privacy, we'll you may have needed to be more careful about Google. Because Microsoft never was in the collecting private data business. Psychosis, this is what it is. Your stories come from nowhere 'ever existed don't exist. And I saw like 100 repos blocking Microsoft of vscode. Somehow they never check the network,, because there might like 50 other sources of telemetry.... And you macos, telemetry everywhere. But apple is honest and nice, I understand.