Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here [1] is a working sample showing how to register a completion item provider for a language.

The monaco-typescript [2] plugin shows how a lot of the language API can be used.

[1] https://microsoft.github.io/monaco-editor/playground.html#ex...

[2] https://github.com/Microsoft/monaco-typescript/blob/master/s...



Thanks, that should be a good start. [1] does not demonstrate context-dependent completions, but I guess it should be possible, and maybe [2] helps there. It's also nice that in the playground intellisense for the monaco API is enabled.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: