Skip to content

sinaptia/pi-vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-vscode

A pi package that installs a bundled VS Code extension for launching pi from inside VS Code.

What this package contains

  • 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 pi in a split terminal
  • Re-focus an existing pi terminal
  • Open a fresh pi terminal session
  • Copy @file and @file#Lx-y references from the active editor for manual pasting into pi

Requirements

Before using this package, make sure you have:

  • pi installed and available on your PATH
  • VS Code installed
  • code available on your PATH
  • run npm install in this project so @vscode/vsce is available for packaging the bundled VS Code extension

Install in pi

Install directly from GitHub:

pi install git:https://github.com/sinaptia/pi-vscode

For local development, you can also install from a checked out copy:

pi install /path/to/pi-vscode

When the pi extension loads, it will attempt to:

  1. package the bundled VS Code extension into a .vsix
  2. install it with the code CLI

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

VS Code commands

Once the VS Code extension is installed, it provides:

  • pi-vscode.openTerminal
  • pi-vscode.openNewTerminal
  • pi-vscode.copyFileReference — copies the current @file or @file#Lx-y reference to the clipboard

Development

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.

About

A pi package that installs a bundled VS Code extension for launching `pi` from inside VS Code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors