NodeJS is required to build the extension. You will also need to install vsce
and ovsx:
npm install -g @vscode/vsce ovsx
This installs vsce and ovsx to /usr/local/bin. Ensure that
/usr/local/bin is in your $PATH environment variable to use it.
Build and install:
Locally:
npm install && vsce package -o carbon.vsix && code --install-extension carbon.vsix
From a remote SSH host using VS Code Server:
npm install && vsce package -o carbon.vsix && ~/.vscode-server/cli/servers/Stable-*/server/bin/code-server --install-extension carbon.vsix
Using the UI:
npm install && vsce package -o carbon.vsix && realpath carbon.vsix
Build and publish the release to the VSCode Marketplace using the website:
npm install && vsce package -o carbon.vsix && realpath carbon.vsixinfra-role@carbon-lang.dev for publishing; the GitHub account
CarbonInfraBot can also be used for login. Contact leads if you
require access.carbon.vsix file.Build and publish the release to the Open VSX Registry by following the Open VSX documentation for publishing extensions.
bazel build //toolchain in project root.To update dependencies, run npm update.