Skip to main content

No project description provided

Project description

uVSCEM

unofficial VSCode Extension Manager

This little program is designed to address some limitations in air-gapped and proxy environments that currently occur due to partially missing proxy support in Visual Studio Code.
It allows for the installation of extensions in DevContainers, even when a proxy is involved, by downloading and installing them manually via Python's requests library.

It's currently a work in progress, and complete offline installation is still missing (integrating it is a minor step), but it should be good enough to be used as "postAttachCommand" in devcontainer.json for environments where a proxy is involved and where automatic extension installation currently fails due to various errors. po It's a workaround for the following upstream issues in Visual Studio Code:

Getting started

In your Dockerfile add

RUN pip install uvscem

(preferably after creating a virtual environment and a non-root user)

In your devcontainer.json

{
  "name": ..
  ..
  "postAttachCommand": "uvscem --config-file /path/to/devcontainer.json"
  ..
}

uVSCEM will then install (and update) all extensions listed in devcontainer.json each time Visual Studio Code / the DevContainer is started or rebuild.

Note Ensure that your Dockerfile contains Python 3.12 and pip, poetry, or pipx to install this package. It should theoretically work with Python 3.10 or later but I need to verify this first. Also, confirm that your PATH variable includes the (virtual) environment where the package was installed into.

If you have a proxy (e.g. Cntlm) listening on localhost it's best to add a line in your /etc/hosts or C:\Windows\system32\drivers\etc\hosts file:

127.0.0.1	localproxy

and configure VSCode to use that domain in (User) settings.json.

{
  ..
  "http.proxy": "http://localproxy:3128"
  ..
}

so that some extensions within the DevContainer still got some internet connectivity (If they are proxy aware).

A big thank you to the following people

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uvscem-0.1.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uvscem-0.1.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file uvscem-0.1.1.tar.gz.

File metadata

  • Download URL: uvscem-0.1.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.12.2 Darwin/23.2.0

File hashes

Hashes for uvscem-0.1.1.tar.gz
Algorithm Hash digest
SHA256 40f15cfa377fa062ad9168856364c8e85b2a9e2ae573b429b99023bf81a0b63a
MD5 b3919b4487129f8fcd230f4daa58798a
BLAKE2b-256 267341748ec445cce5db5ef4ba86a2d0463ecf7759797d9fe7675d38da2335c2

See more details on using hashes here.

File details

Details for the file uvscem-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: uvscem-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.12.2 Darwin/23.2.0

File hashes

Hashes for uvscem-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0851b7788b9a7851bc5a359e640f993a1c47e6ccbcbbaba79bed0da336a91dd5
MD5 e3bfd78ee0e278b963c4bccf6b061cea
BLAKE2b-256 fb9b6a061facddfadcb2c1f4f7890e205ed7a61f3d121f3fbd07289d4e839d1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page