Language Server for Tilt 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, from Serbia. Free to use, with no paid tier.
- Lightweight: Starts only when you open a Tiltfile, with nothing to install. Tilt is needed only for the Run buttons.
- Private: No telemetry, no account, no network: Tilt's API docs ship with it. It asks only the Tilt on your machine whether it runs.
- Secure: It runs
tilt only when you click Run All or Run, in a folder you trust, and never writes a file. It works in Restricted Mode, in folders you haven't trusted, without the Run buttons.
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.
- Run buttons: Run All above the Tiltfile starts
tilt up in a terminal while Tilt isn't running; once it runs this Tiltfile, Run above each local_resource, k8s_resource and dc_resource reruns it with tilt trigger.
- 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.
| |