Protected
Readonly
_readyProtected
Readonly
documentProtected
Readonly
fileProtected
Optional
foldersThe options used for the initial workspace build.
Protected
Readonly
langiumProtected
Readonly
mutexProtected
Readonly
serviceA promise that resolves when the workspace manager is ready to be used. Use this to ensure that the workspace manager has finished its initialization.
The workspace folders of the current workspace.
Available only after the ready
promise resolves.
Protected
getDetermine the root folder of the source documents in the given workspace folder.
The default implementation returns the URI of the workspace folder, but you can override
this to return a subfolder like src
instead.
Protected
includeDetermine whether the given folder entry shall be included while indexing the workspace.
Does the initial indexing of workspace folders. Collects information about exported and referenced AstNodes in each language file and stores it locally.
The set of workspace folders to be indexed.
A cancellation token that can be used to cancel the operation.
Protected
loadLoad all additional documents that shall be visible in the context of the given workspace folders and add them to the collector. This can be used to include built-in libraries of your language, which can be either loaded from provided files or constructed in memory.
Protected
performPerforms the uninterruptable startup sequence of the workspace manager. This methods loads all documents in the workspace and other documents and returns them.
Protected
traverseTraverse the file system folder identified by the given URI and its subfolders. All contained files that match the file extensions are added to the collector.
The workspace manager is responsible for finding source files in the workspace. This service is shared between all languages of a language server.