About this package
This package installs a hook that will patch product.json every time the code package is updated. The patch basically does the following:
- Syncs proposed APIs with the latest vscode release. Some extensions don't work in code oss because some specific APIs are not enabled in product.json.
- Enable built-in settings sync feature.
- Disable telemetry.
- Use
~/.vscode
and~/.Code
instead of~/.vscode-oss
and~/.Code OSS
.
You might be confused why this package changes the data directory. There are two reasons:
- Some extensions (e.g. Pylance) require to use the data directory to work.
- Isolate settings sync data from the OSS version. People may want to install this package because they want to unlock some proprietary extensions, and may have some specific settings that only works with these extensions. Besides, this package will enable built-in sync feature, so isolating the settings may avoid some potential problems such as messing up your synced settings.
If you don't like this behavior, simply create a symlink.
About proprietary extensions
Proprietary extensions are not guaranteed to work, because some extensions will actively detect whether the current running environment is the official vscode release, and it's very hard to bypass their detection at all time.
If some extensions don't work, try:
- Run update.py in the project root. This scripts will update the patch to match the latest vscode release. Then execute
makepkg -fsi
to rebuild and install this package. - Switch over a FOSS alternative, for example Pylance -> Basedpyright, C/C++ -> Clangd
Pinned Comments
sainnhe commented on 2024-11-01 14:53 (UTC) (edited on 2024-11-02 03:08 (UTC) by sainnhe)
New Command Available in 1.95.0-2
Now there is a new command /usr/bin/code-features-update that can update the patch to keep up with the official vscode release. You can use this command to manually update the patch when this package is out of date or some extensions don't work after an update in extra/code.
sainnhe commented on 2024-05-17 03:39 (UTC) (edited on 2024-10-26 10:10 (UTC) by sainnhe)
About this package
This package installs a hook that will patch product.json every time the code package is updated. The patch basically does the following:
~/.vscode
and~/.Code
instead of~/.vscode-oss
and~/.Code OSS
.You might be confused why this package changes the data directory. There are two reasons:
If you don't like this behavior, simply create a symlink.
About proprietary extensions
Proprietary extensions are not guaranteed to work, because some extensions will actively detect whether the current running environment is the official vscode release, and it's very hard to bypass their detection at all time.
If some extensions don't work, try:
makepkg -fsi
to rebuild and install this package.