Add TypeScript worker extension to Monaco Editor for custom diagnostics #289
Labels
clipper
Requests from the Europa Clipper project
feature
New feature or request
sequencing
Anything related to the sequencing domain
Milestone
Currently expansion rule authoring does not validate numeric ranges for commands because TypeScript type definitions do not support numeric range validation, or regex validation.
This issue is to add support for custom diagnostics (e.g. numeric range validation, regex string validation, etc.) via a custom TypeScript worker in Monaco. We previously attempted to solve this by forking the main TypeScript worker, and adding custom diagnostics. But this solution turned out to be too brittle. It is not easy to use the forked TypeScript worker in the client in an isolated manner. All TypeScript editors needed to use it which is overkill. Also we had worries of keeping the fork up to date with the latest TypeScript worker.
We later found there is a way to create a local custom worker. But there is a PR for a bug that needs to be merged.
We need to:
The text was updated successfully, but these errors were encountered: