-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monaco.languages.typescript.getTypeScriptWorker() ... getEmitOutput #289
Comments
I am doing it like this, not sure if it's helpful:
|
There is |
@jrieken : could you please be more explicit? I also have no idea how to proceed. When I call
I get back
What shall I do with that function? |
In case other stumble on this, you can do (where const worker = await monaco.languages.typescript.getTypeScriptWorker();
const client = await worker(uri);
const result = await client.getEmitOutput(uri.toString()); |
Why is a |
Ok, It was not clear before, but I see now that a model is the code in the editor. You can create models, or you can create an editor with a default model it seems; so |
monaco-editor npm version: 0.7.0
Browser: all
OS: Windows Server 2012 R2
I need to access to output which is the JS emitted by the TypeSript language service. My app used getEmitOutput with an old version of monaco but I can make heads and tails of the new API.
The text was updated successfully, but these errors were encountered: