Tiltfile Language Server by Bitno
A lightweight, private and secure Tiltfile language server for VS Code, with Tilt's own docs.
Early development: this extension is still being built. Expect missing features, rough edges and breaking changes between versions.
Lightweight, private and secure by design
Built by a developer, for developers. Free to use, with no paid tier.
- Lightweight: it starts only when you open a Tiltfile. Its Starlark parser comes built in, so there's nothing to install, not even Tilt, and no native binary.
- Private: no telemetry, no account, no cloud, and no network calls at all: Tilt's API and docs ship in the extension. It reads only your open Tiltfiles.
- Secure: it never runs your Tiltfile,
tilt or anything it reads, and never writes a file.
Features
- Tiltfiles, colored: the
tiltfile language for files named Tiltfile and *.tiltfile, colored as Python, whose syntax Starlark's is a subset of.
- Syntax errors as you type: from tree-sitter's Starlark parser.
- Outline: your functions, variables and the names
load brings in, in the outline, breadcrumbs and Go to Symbol.
- Completion: Tilt's functions, its modules (
config, os, os.path, shlex, sys, v1alpha1) and their members, your own names, and the keyword arguments a call doesn't have yet.
- Hover: Tilt's docs for its functions, values, modules and keyword arguments, with links to docs.tilt.dev.
- Signature help: a function's parameters as you type its arguments, with the one you're on highlighted.
- Your names first: a name your Tiltfile defines itself hides Tilt's of the same name.
- Server status beside the language mode: in the
{} of a Tiltfile, with a spinner while the server starts; it comes into the status bar when the server failed to start, and opens the server's logs when clicked.
Feedback
Found a bug, or missing something? Open an issue. Questions and ideas go to Discussions. Blunt feedback is welcome.
| |