facebook / starlark-rust

A Rust implementation of the Starlark language
Apache License 2.0
672 stars 53 forks source link

Add workspace symbols & `--eager` flag #116

Open MaartenStaa opened 4 months ago

MaartenStaa commented 4 months ago

Builds on top of #115

Allows passing in the flag --eager, which eagerly loads all relevant documents in the workspace and parses them ahead of time. When this flag is passes, the LSP offers the capability for workspace symbols. This also ensures exported symbols from other files are always available as autocomplete options, rather than having to explicitly open the exporting file first.

Example from this repository:

Screenshot 2024-03-15 at 14 33 51