-
Notifications
You must be signed in to change notification settings - Fork 26
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
Various cleanups #41
Various cleanups #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning this up, very nice. LGTM 👍
import monaco.services.ITextEditorModel | ||
import monaco.services.ITextModelResolverService | ||
|
||
@ScalaJSDefined | ||
object MetadocTextModelService extends ITextModelResolverService { | ||
// NOTE: we have a private cache here to avoid "duplicate model" errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to get rid of this.
/** | ||
* Service to dynamically load models. | ||
* | ||
* @note This service was renamed to ITextModelService in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I need to learn scaladoc
Removes the need for the custom model cache and reduces the number of requests considerably. References #39
214130f
to
ebd632c
Compare
monaco.services
with more documentation