Protected Readonly_Protected ReadonlydocumentProtected ReadonlyfileProtected OptionalfoldersThe options used for the initial workspace build.
Protected ReadonlylangiumProtected ReadonlymutexProtected ReadonlyserviceA 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.
ProtectedgetDetermine 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.
When used in a language server context, this method is called when the server receives
the initialize request.
When used in a language server context, this method is called when the server receives
the initialized notification.
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.
ProtectedloadLoad 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.
ProtectedperformPerforms the uninterruptable startup sequence of the workspace manager. This methods loads all documents in the workspace and other documents and returns them.
Determine whether the given folder entry shall be included while indexing the workspace.
Protectedtraverse
The workspace manager is responsible for finding source files in the workspace. This service is shared between all languages of a language server.