A small VS Code extension for FRC teams: adds your team's LibPurple Java
library straight into a WPILib robot project with one command.
What it does
Run "LibPurple: Add Library to Project" from the Command Palette
(Ctrl+Shift+P / Cmd+Shift+P) while your WPILib project folder is open.
It clones LibPurple into:
<your-project>/src/main/java/frc/libpurple
Settings
You can override these in VS Code settings (settings.json):
Setting
Default
Description
libpurple.repoUrl
https://gitlab.com/EranOvadia/LibPurple.git
Git URL to clone
libpurple.targetFolderName
libpurple
Folder name created inside frc/
libpurple.frcRelativePath
src/main/java/frc
Path to the frc Java package, relative to root
Running it locally (development)
Open this folder in VS Code.
Run npm install
Run npm run compile
Press F5 to launch an Extension Development Host window.
Open a WPILib FRC project in that new window and run the command.
Command Palette → Extensions: Install from VSIX..., or
code --install-extension libpurple-frc-0.1.0.vsix
Requirements
git must be installed and available on your PATH (VS Code's own bundled
git usually satisfies this).
Network access to gitlab.com (or wherever your repo is hosted) to clone.
Notes / things you may want to change
Right now the clone brings the entire repo, including its own .git
history and any pom.xml/build.gradle from LibPurple itself. If
LibPurple is meant to be pure source files (not its own buildable
project), you may want the extension to delete .git after cloning, or
clone into a temp folder and copy just the src contents instead. Say
the word and I'll add that.
If your WPILib package name isn't literally frc (e.g. your team uses
frc.robot.subsystems... as a base but a custom root), adjust
libpurple.frcRelativePath in settings — no code change needed.