Skip to content

perpetual-motion/vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSCode for node

Description

This installs a private install of VSCode to an 'isolated directory' and allows you to run it, without interacting with your globally installed vscode.

The 'isolated directory' is a generated folder which defaults to ${tmp}/.vscode-test/${id}
where ${tmp} is the system temp directory,
and ${id} is a hash based on the the current directory.

You can override id by passing --id=<id> as an argument.

Install

Simple: install the package

npm install -g @perpetual-motion/vscode

Usage

Run VSCode:

You can install and run vscode with a single command:

vscode [--id=<string>] [--verbose] [...vscode arguments...]
Switches
switch        description
--verbose Prints verbose output of what the command is doing
--id=<text> The id of the vscode instance to run. If not specified, a hash of the current directory is used.

Install VSCode:

Installs a isolated vscode installation:

vscode install [--verbose] [--id=<string>]
Switches
switch        description
--verbose Prints verbose output of what the command is doing
--id=<text> The id of the vscode instance to install. If not specified, a hash of the current directory is used.

Uninstall VSCode:

Uninstalls isolated vscode installations:

vscode uninstall [--all] [--verbose] [--id=<string>]
Switches
switch        description
--verbose Prints verbose output of what the command is doing
--id=<text> The id of the vscode instance to uninstall. If not specified, a hash of the current directory is used.
--all Uninstalls all the vscode temporary directories for all ids.

Add an extension to the VSCode instance:

You can install an extension from the command line with vscode add and pass either the extension id or the path to the vsix to install

vscode add <extension id> [version] [--verbose] [--id=<string>]
vscode add <path to .vsix> [--verbose] [--id=<string>]
Switches
switch                  description
--verbose Prints verbose output of what the command is doing
--id=<text> The id of the vscode instance to add the extension to. If not specified, a hash of the current directory is used.
--pre-release Allows pre-release versions of the extension to be installed.

Get information for VSCode instances:

Shows the information about vscode instances:

vscode info [--all] [--verbose] [--id=<string>]
Switches
switch        description
--verbose Prints verbose output of what the command is doing
--id=<text> The id of the vscode instance to get information for. If not specified, a hash of the current directory is used.
--all Gets all the vscode instances for all ids.

About

A node utility to create isolated vscode installs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published