Extension development
Currently only contains basic syntax highlighting.
Releases
This assumes NodeJS is installed, along with vsce (using
npm install -g vsce).
npm install && vsce publish
Local installation
This assumes NodeJS is installed, along with vsce (using
npm install -g vsce).
npm install && vsce package -o carbon.vsix && realpath carbon.vsix
- This installs dependencies, builds the VSIX file, and prints the path
for installation.
- Install the plugin:
- If you're using VS Code locally, run
npm install && vsce package -o carbon.vsix && code --install-extension carbon.vsix
- If you're using VS Code's remote mode:
- In vscode, open the
command palette
and select "Extensions: Install from VSIX...".
- Enter the path printed by the above command.
Development
bazel build //toolchain in project root.
- Open utils/vscode folder in VS Code.
- Launch the extension using Run command (F5).
- In the opened window, open the carbon-lang repository as folder.
- Open a carbon file.
- Open code outline (Ctrl+Shift+O).
Debugging output
- Go to the "Output" panel.
- In the top right, there is a dropdown; select "Carbon Language Server".
Updating dependencies
To update dependencies, run npm update.