onBeforeFormattingReady Readonly@beta
onBeforeFormattingReady: BeEvent<(collector: FormattingReadyCollector) => void> = ...
Event for formatting providers to register async work before the formatter signals ready.
Fires synchronously after each reload completes. Providers should call
collector.addPendingWork(promise) to register work. The formatter awaits all
registered work (with a 20-second default timeout) before emitting onFormattingReady.
Use this for providers that need async loading. Use onFormattingReady for consumers that read specs.
Defined in
Last Updated: 25 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.