The VS Code Buf extension provides rich support for Protocol Buffers using the Buf development environment.
- Visual Studio Code
- A Buf configuration environment.
The Buf CLI is the ultimate tool for modern, fast, and efficient Protobuf API management. Getting started is simple!
- Install the VS Code Buf extension.
- Create a buf.yaml in the root of your workspace.
- Open any Protobuf file to automatically activate the extension. A Buf status bar appears in the bottom right corner of the window.
- The extension depends on the Buf CLI. If a Buf binary is not found in your path, the extension will attempt to install the latest release from Github.
- Code navigation - Jump to or peek at a symbol's declaration.
- Syntax highlighting - Protobuf specific color and styling of code.
- Code editing - Support for formatting and linting.
- Buf command support - Execution of Buf CLI commands e.g. Buf Generate.
This extension contributes the following settings:
Default: null
The path to a specific install of Buf to use. Relative paths are supported and are relative to the workspace root.
If not set and
buf.commandLine.version
is also not set, the extension will attempt to find a os-specific Buf binary on the path.
Default: null
Specific version (git tag e.g. 'v1.53.0') of Buf release to download and install.
Default: true
Automatically restart Buf (up to 4 times) if it crashes.
Default: true
Check for language server updates on startup.
Default: true
Enable hover features provided by the language server.
Default: true
Enable Buf language server features.
Default: false
Enable debug mode.
Default: text
Buf language server log format.
Default: git
The strategy to use when checking breaking changes against a specific reference.
Default: refs/remotes/origin/HEAD
The Git reference to check breaking changes against.
- v0.8.0
- Improve overall editor functionality, using Buf Language Server.
- v0.7.2
- Fix issue with
buf
commands returning an unexpected error on exec.
- Fix issue with
- v0.7.1
- Fix "undefined" error when running
buf
on the extension.
- Fix "undefined" error when running
- v0.7.0
- Output errors to "Buf" channel in the VSCode output console.
- v0.6.2
- Reintroduce relative binary path support.
- v0.6.1
- Revert relative binary path support.
- v0.6.0
- Support relative binary path.
- v0.5.3
- Add syntax highlighting for
.proto
files.
- Add syntax highlighting for
- v0.5.2
- Fix lint highlighting issue outside of the current file.
- v0.5.1
- Fix an issue with setting buf format as the default formatter for proto3 files.
- v0.5.0
- Add formatting through using buf format. Defaults to format on save.
- v0.4.0
- Use single file reference to resolve lint file from any path
- v0.3.1
- Accept v1.0.0-rc1 in version parser
- v0.3.0
- Change
--version
to read from bothstdout
andstderr
- Change
- v0.2.0
- Update minimum required version to v0.34.0
- v0.1.3
- Update logo
- v0.1.0
- Add version check and download link
- v0.0.3
- Fix missing generation command