Skip to main content

Module workspace

Module workspace 

Source
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§

FileReference
One name occurrence in a file, for cross-file references and rename.
ModuleExport
A module that publicly exports a given name — the backbone of the auto-import quickfix, cross-module completion, and “defined in module X” hover.
WorkspaceIndex
WorkspaceSymbol

Traits§

WorkspaceView
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 — None where there is no filesystem.
url_path
The filesystem path a file:// URL names. None for any other URL, and always on a target with no filesystem — the browser Studio, which has no workspace on disk.