Skip to main content
Question

Visual Studio Code with VEX robotics extension

  • Sep 10, 2024 10:55 PM UTC
  • 1 reply
  • 45 views

Forum|alt.badge.img+1

I was trying to deploy the Visual Studio Code with the VEX robotics extension through JAMF policies. I can deploy the Visual Studio Code; however, I need to download the VEX extension manually. Any idea if we can deploy both together?

1 reply

WickedSmaht
Forum|alt.badge.img+5
  • Contributor
  • Dec 2, 2026 9:10 AM UTC

You can deploy both through the same Jamf Pro policy using the built-in VS Code CLI.

Deploy Visual Studio Code as usual, then add a script configured to run after the installation:

#!/bin/bash

loggedInUser=$(/usr/bin/stat -f%Su /dev/console)

codeCLI="/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"

sudo -H -u "$loggedInUser" "$codeCLI" \
--install-extension VEXRobotics.vexcode \
--force

The important part is running the extension installation in the logged-in user's context. Jamf policies run as root by default, whereas VS Code extensions are installed per user.

Alternatively, you can download the extension as a .vsix file, package it with Jamf and install it using the same CLI. This gives you greater control over extension versions and removes the dependency on Marketplace availability during deployment.

For shared classroom Macs, I'd trigger the extension installation at login so each user receives it.

No need to repackage Visual Studio Code itself.