You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Evaluate Monaco worker initialization using the new editor.worker.start API #497
Try the new Monaco worker initialization documented by @volar/monaco following the resolution of volarjs/volar.js#321, which has now been closed.
The upstream commit replaces the previous editor.worker / initialize() approach with editor.worker.start / start(), and documents the required TypeScript module declarations.
Our Text Editor currently uses initialize() from monaco-editor/editor/editor.worker.js, introduced in #460.
Motivation
Evaluate whether the new upstream-documented initialization approach is compatible with our Monaco/Language Service integration and whether we should adopt it.
The change should also be validated in the Vanilla Example.
Proposed Implementation
Experiment with the editor.worker.start / start() initialization pattern documented by Volar, including the worker message handling.
Update the local TypeScript module declaration accordingly.
Verify that Language Service features, including completions, diagnostics and CodeLens, continue working.
Test the integration in the Text Editor Storybook and in examples/vanilla-web-component, using either:
Activity