Overview of Web Workers in SwaggerEditor
mainSwaggerEditor utilizes three distinct Web Workers to offload heavy tasks from the main thread:
editor.worker(Label:editorWorkerService): Handles Monaco core text-model operations such as diffing, link detection, and bracket matching.apidom.worker(Label:apidom): Powers the ApiDOM language server for validation, hover, completion, and semantic tokens.asyncapi-parser.worker: Handles AsyncAPI spec parsing. Unlike the others, this is not managed by Monaco but is spawned directly by theeditor-preview-asyncapiplugin using Comlink.