A pi package that installs a bundled VS Code extension for launching pi from inside VS Code.
- A pi extension at
extensions/pi-vscode/index.ts - A bundled VS Code extension at
vscode-extension/
The VS Code extension is modeled after the opencode VS Code extension workflow:
- Open
piin a split terminal - Re-focus an existing
piterminal - Open a fresh
piterminal session - Copy
@fileand@file#Lx-yreferences from the active editor for manual pasting intopi
Before using this package, make sure you have:
piinstalled and available on yourPATH- VS Code installed
codeavailable on yourPATH- run
npm installin this project so@vscode/vsceis available for packaging the bundled VS Code extension
Install directly from GitHub:
pi install git:https://github.com/sinaptia/pi-vscodeFor local development, you can also install from a checked out copy:
pi install /path/to/pi-vscodeWhen the pi extension loads, it will attempt to:
- package the bundled VS Code extension into a
.vsix - install it with the
codeCLI
If that does not happen automatically, run:
/pi-vscode-install— package and install or reinstall the VS Code extension/pi-vscode-status— show current install status
Once the VS Code extension is installed, it provides:
pi-vscode.openTerminalpi-vscode.openNewTerminalpi-vscode.copyFileReference— copies the current@fileor@file#Lx-yreference to the clipboard
The VS Code extension source lives in vscode-extension/src/extension.ts.
A prebuilt runtime copy is included at vscode-extension/dist/extension.js so the pi extension can package and install it immediately.