4 stable releases
new 1.5.2 | Apr 12, 2025 |
---|---|
1.5.1 | Apr 11, 2025 |
1.4.0 | Apr 10, 2025 |
1.0.0 | Mar 26, 2025 |
#16 in Text editors
511 downloads per month
165KB
4K
SLoC
GN Language Server
A language server for GN, the build configuration language used in Chromium, Fuchsia, and other projects.
Features
- Syntax highlighting
- Context-aware completion
- Hover documentation
- Go to definition
- Following imports
- Following dependencies
- Sticky scroll with useful lines
- Outline
- Code folding
- Formatting
- Go to the nearest
BUILD.gn
(VSCode only)
Installing
VSCode
You can install from the official marketplace. Search for "GN Language" in the VSCode's extension window.
Other Editors/IDEs
You can install the language server with Cargo.
cargo install gn-language-server
Gallery
Syntax highlighting
Completion
Hover documentation
Go to definition
Following imports
Following dependencies
Sticky scroll with useful lines
Outline
Code folding
Building from source
Language server binary
cargo build --release
VSCode extension
cd vscode-gn
npm install
npm run build
npm run package
Versioning scheme
We use the versioning scheme recommended by the VSCode's official documentation. That is:
- Pre-release versions are
1.<odd>.x
- Release versions are
1.<even>.x
Disclaimer
This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.
Dependencies
~13–25MB
~379K SLoC