microsoft / microsoft/monaco-editor
[Feature Request] Get notified when a language features are ready
Open
@alexdima is already working on this.
Since Jan 10, 2022.
feature-request
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Context
- This issue is not a bug report. (please use a different template for reporting a bug)
- This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
As can be seen in basic-languages/test/testRunner.ts, it can be useful to wait for language features to be ready to e.g. call the tokenizer.
I am trying to write unit tests for a util of my own that leverages the editor.tokenize function but I don't see any clean way to do it apart from using timeouts, as it doesn't look like there are hooks or promises available in the framework. Did I miss something?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.