Langium - v4.0.0
    Preparing search index...

    Class DefaultDocumentBuilder

    Shared-service for building and updating LangiumDocuments.

    Implements

    Index

    Constructors

    Properties

    buildPhaseListeners: MultiMap<DocumentState, DocumentBuildListener> = ...
    buildState: Map<string, DocumentBuildState> = ...
    currentState: DocumentState = DocumentState.Changed
    documentBuildWaiters: Map<string, Deferred<void>> = ...
    documentPhaseListeners: MultiMap<DocumentState, DocumentPhaseListener> = ...
    fileSystemProvider: FileSystemProvider
    indexManager: IndexManager
    langiumDocumentFactory: LangiumDocumentFactory
    langiumDocuments: LangiumDocuments
    serviceRegistry: ServiceRegistry
    textDocuments: undefined | TextDocumentProvider
    updateBuildOptions: BuildOptions = ...

    The options used for rebuilding documents after an update.

    updateListeners: DocumentUpdateListener[] = []
    workspaceManager: () => WorkspaceManager

    Methods

    • Determine whether the given document should be linked during a build. The default implementation checks the eagerLinking property of the build options. If it's set to true or undefined, the document is included in the linking phase. This also affects the references indexing phase, which depends on eager linking.

      Parameters

      Returns boolean