microsoft / microsoft/monaco-editor

[Feature Request] Get notified when a language features are ready

Open
#2,885 0 comments 2 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.