Skip to content

A language server implementation for Bazel

License

Notifications You must be signed in to change notification settings

hauserx/bazel-lsp

 
 

Repository files navigation

Bazel LSP

This is a LSP for bazel, based on starlark-rust.

Features

  • Go to definition for identifiers & labels
  • Autocomplete for identifiers & labels
  • Auto-import (currently only for open files)

Usage

Installation

Download a release from github releases and move it to somewhere on your $PATH.

Alternatively, it can be installed from source by cloning this repo and building with Bazel:

bazel build //:bazel-lsp -c opt

VSCode

Ensure you have the Bazel extension installed, and add the following config to your user settings.json:

{
  "bazel.lsp.command": "bazel-lsp"
}

Restart vscode for this to take effect.

About

A language server implementation for Bazel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 95.2%
  • Starlark 4.8%