Expand description
Workspace-wide symbol index: every .lg/.md file under the workspace
folders, analyzed in the background, so symbols resolve across files the
user never opened.
Open-document state stays authoritative in crate::state::ServerState;
this index answers only what per-document resolution cannot — workspace
symbol queries and cross-file definition lookups.
Structs§
- File
Reference - One name occurrence in a file, for cross-file references and rename.
- Module
Export - A module that publicly exports a given name — the backbone of the auto-import quickfix, cross-module completion, and “defined in module X” hover.
- Workspace
Index - Workspace
Symbol
Traits§
- Workspace
View - Read-only view of the workspace’s imports/exports, so LSP providers (auto-import, completion, hover) are unit-testable against a fake without a running server.
Functions§
- module_
alias_ from_ url - Derive a module’s import alias from its file path (
geometry.lg→Geometry). - path_
url - The
file://URL for a filesystem path —Nonewhere there is no filesystem. - url_
path - The filesystem path a
file://URL names.Nonefor any other URL, and always on a target with no filesystem — the browser Studio, which has no workspace on disk.