Execute all necessary build steps for the given documents.
Set of documents to be built.
Optional
options: BuildOptionsOptions for the document builder.
Optional
cancelToken: CancellationTokenIndicates when to cancel the current operation.
Notify the given callback when a set of documents has been built reaching the specified target state.
Notify the specified callback when a document has been built reaching the specified target state. Unlike onBuildPhase the listener is called for every single document.
There are two main advantages compared to onBuildPhase:
Notify the given callback when a document update was triggered, but before any document is rebuilt. Listeners to this event should not perform any long-running task.
This method is called when a document change is detected. It updates the state of all affected documents, including those with references to the changed ones, so they are rebuilt.
URIs of changed or created documents
URIs of deleted documents
Optional
cancelToken: CancellationTokenallows to cancel the current operation
Wait until the workspace has reached the specified state for all documents.
The desired state. The promise won't resolve until all documents have reached this state
Optional
cancelToken: CancellationTokenOptionally allows to cancel the wait operation, disposing any listeners in the process
Wait until the document specified by the uri has reached the specified state.
The desired state. The promise won't resolve until the document has reached this state.
Optional
uri: URIThe specified URI that points to the document. If the URI does not exist, the promise will resolve once the workspace has reached the specified state.
Optional
cancelToken: CancellationTokenOptionally allows to cancel the wait operation, disposing any listeners in the process.
The URI of the document that has reached the desired state, or undefined
if the document does not exist.
Shared-service for building and updating
LangiumDocument
s.